Add IRCServer.send_tagmsg, to send TAGMSG commands

This commit is contained in:
jesopo 2019-02-14 21:36:59 +00:00
parent ec3096fb50
commit 8d97e51bf3

View file

@ -337,6 +337,9 @@ class Server(IRCObject.Object):
return self.send("%sNOTICE %s %s" % return self.send("%sNOTICE %s %s" %
(self._tag_str(tags), target, utils.irc.trailing(full_message))) (self._tag_str(tags), target, utils.irc.trailing(full_message)))
def send_tagmsg(self, target, tags: dict):
return self.send("%s TAGMSG %s" % (self._tag_str(tags), target))
def send_mode(self, target: str, mode: str=None, args: str=None def send_mode(self, target: str, mode: str=None, args: str=None
) -> IRCLine.Line: ) -> IRCLine.Line:
return self.send("MODE %s%s%s" % (target, return self.send("MODE %s%s%s" % (target,