Default IRCParsedLine.tags to empty dict, not None
This commit is contained in:
parent
8879e6416e
commit
bc772ef5cc
1 changed files with 2 additions and 2 deletions
|
@ -78,11 +78,11 @@ def _tag_str(tags: dict) -> str:
|
||||||
class IRCParsedLine(object):
|
class IRCParsedLine(object):
|
||||||
def __init__(self, command: str, args: typing.List[str],
|
def __init__(self, command: str, args: typing.List[str],
|
||||||
prefix: IRCHostmask = None, tags: dict = None):
|
prefix: IRCHostmask = None, tags: dict = None):
|
||||||
self.tags = tags
|
|
||||||
self.prefix = prefix
|
|
||||||
self.command = command
|
self.command = command
|
||||||
self._args = args
|
self._args = args
|
||||||
self.args = IRCArgs(args)
|
self.args = IRCArgs(args)
|
||||||
|
self.prefix = prefix
|
||||||
|
self.tags = {} if tags == None else tags
|
||||||
|
|
||||||
def format(self) -> str:
|
def format(self) -> str:
|
||||||
s = ""
|
s = ""
|
||||||
|
|
Loading…
Reference in a new issue