_messag_factory._ should take a tags arg

This commit is contained in:
jesopo 2019-10-28 11:24:56 +00:00
parent e6b4321f30
commit 74d9bf4da3

View file

@ -10,8 +10,8 @@ def _message_factory(command):
if not command in ["PRIVMSG", "NOTICE"]: if not command in ["PRIVMSG", "NOTICE"]:
raise ValueError("Unknown command method '%s'" % method) raise ValueError("Unknown command method '%s'" % method)
def _(target, message): def _(target, message, tags):
return IRCLine.ParsedLine(command, [target, message]) return IRCLine.ParsedLine(command, [target, message], tags=tags)
return _ return _
class Out(object): class Out(object):