diff options
| author | 2019-06-02 15:18:09 +0100 | |
|---|---|---|
| committer | 2019-06-02 15:18:36 +0100 | |
| commit | c212d70b68dff3d3f5ce68254dd6d8db7bb81e25 (patch) | |
| tree | 8b3d25dd56114fed2a268965973eb53718166eca /src/utils/irc | |
| parent | fix some CAP related type hints (diff) | |
| signature | ||
Hold on to BATCH args, allow event hooks to manipulate batches
Diffstat (limited to 'src/utils/irc')
| -rw-r--r-- | src/utils/irc/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index 3e3cef1b..5a6fb69b 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -258,10 +258,11 @@ def parse_ctcp(s: str) -> typing.Optional[CTCPMessage]: return None class IRCBatch(object): - def __init__(self, identifier: str, batch_type: str, tags: - typing.Dict[str, str]={}): + def __init__(self, identifier: str, batch_type: str, args: typing.List[str], + tags: typing.Dict[str, str]={}): self.id = identifier self.type = batch_type + self.args = args self.tags = tags self._lines = [] # type: typing.List[IRCLine.ParsedLine] def add_line(self, line: IRCLine.ParsedLine): |
