diff options
| author | 2019-02-19 15:40:56 +0000 | |
|---|---|---|
| committer | 2019-02-19 15:40:56 +0000 | |
| commit | bc772ef5ccbf529053c94414a5293adf519661b5 (patch) | |
| tree | fb29732027c418d58d3f17c12fc8b65127b5b689 /src | |
| parent | How can you govern a country that has two hundred and forty-six varieties of ... (diff) | |
| signature | ||
Default IRCParsedLine.tags to empty dict, not `None`
Diffstat (limited to 'src')
| -rw-r--r-- | src/utils/irc/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index b2e60913..85410e5d 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -78,11 +78,11 @@ def _tag_str(tags: dict) -> str: class IRCParsedLine(object): def __init__(self, command: str, args: typing.List[str], prefix: IRCHostmask = None, tags: dict = None): - self.tags = tags - self.prefix = prefix self.command = command self._args = args self.args = IRCArgs(args) + self.prefix = prefix + self.tags = {} if tags == None else tags def format(self) -> str: s = "" |
