aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-23 21:33:04 +0000
committerGravatar jesopo2019-02-23 21:33:04 +0000
commit8c94bcf6caf0ae88b3a67d0a73389a7e60810e1c (patch)
tree8d72b0760aef71da12403696e9acd387d288e4e0 /modules/line_handler/__init__.py
parent!raw needs to parse the line it's given in to an IRCParsedLine now (diff)
signature
Move utils.irc.IRCParsedLine to IRCLine.ParsedLine, improve truncation
mechanism, don't convert sent line from ParsedLine to text to ParsedLine for line_handler handling
Diffstat (limited to 'modules/line_handler/__init__.py')
-rw-r--r--modules/line_handler/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/line_handler/__init__.py b/modules/line_handler/__init__.py
index 44d1b621..3f18c891 100644
--- a/modules/line_handler/__init__.py
+++ b/modules/line_handler/__init__.py
@@ -33,10 +33,9 @@ class Module(ModuleManager.BaseModule):
@utils.hook("raw.send")
def handle_send(self, event):
- line = utils.irc.parse_line(event["line"])
- self.events.on("raw.send").on(line.command).call_unsafe(
- args=line.args, tags=line.tags, server=event["server"],
- direction=utils.Direction.SEND)
+ self.events.on("raw.send").on(event["line"].command).call_unsafe(
+ args=event["line"].args, tags=event["line"].tags,
+ server=event["server"], direction=utils.Direction.SEND)
# ping from the server
@utils.hook("raw.received.ping")