diff options
| author | 2019-05-09 10:36:33 +0100 | |
|---|---|---|
| committer | 2019-05-09 10:36:33 +0100 | |
| commit | f7eae1a978143ffc2f613ba3899ab5a12b282da7 (patch) | |
| tree | 65cfe41d3db50ea70bbfb0e2ced9f70b589f138f /modules/line_handler | |
| parent | Catch UserNotFoundException in var `e` (diff) | |
| signature | ||
Tokenize IRC data as soon as it comes out of IRCServer
Diffstat (limited to 'modules/line_handler')
| -rw-r--r-- | modules/line_handler/__init__.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/line_handler/__init__.py b/modules/line_handler/__init__.py index 144e6102..42a830f7 100644 --- a/modules/line_handler/__init__.py +++ b/modules/line_handler/__init__.py @@ -24,12 +24,11 @@ class Module(ModuleManager.BaseModule): @utils.hook("raw.received") def handle_raw(self, event): - line = utils.irc.parse_line(event["line"]) - if "batch" in line.tags and line.tags["batch"] in event[ - "server"].batches: - server.batches[tag["batch"]].lines.append(line) + if ("batch" in event["line"].tags and + event["line"].tags["batch"] in event["server"].batches): + server.batches[tag["batch"]].lines.append(event["line"]) else: - self._handle(event["server"], line) + self._handle(event["server"], event["line"]) @utils.hook("raw.send") def handle_send(self, event): |
