Default tags to null for utils.irc.protocol's message and notice

This commit is contained in:
jesopo 2019-02-18 23:06:41 +00:00
parent 07cb14d98c
commit 509a7ff42e

View file

@ -32,10 +32,10 @@ def part(channel_name: str, reason: str=None) -> 'utils.irc.IRCParsedLine':
def quit(reason: str=None) -> 'utils.irc.IRCParsedLine':
return utils.irc.IRCParsedLine("QUIT", [reason] if reason else [])
def message(target: str, message: str, tags: dict={}
def message(target: str, message: str, tags: dict=None
) -> 'utils.irc.IRCParsedLine':
return utils.irc.IRCParsedLine("PRIVMSG", [target, message], tags=tags)
def notice(target: str, message: str, tags: dict={}
def notice(target: str, message: str, tags: dict=None
) -> 'utils.irc.IRCParsedLine':
return utils.irc.IRCParsedLine("NOTICE", [target, message], tags=tags)
def tagmsg(target, tags: dict) -> 'utils.irc.IRCParsedLine':