aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-30 11:13:05 +0100
committerGravatar jesopo2018-08-30 11:13:05 +0100
commitbfca9bc207331eadc8e9571a3d44cccd70ab6fc5 (patch)
treefd21a42805383bbfb4da170ab1bfc0a33faf49d5
parentRefactor handling MODE in IRCLineHandler (diff)
signature
default events on IRCLineHandler should use original_line, not line
-rw-r--r--IRCLineHandler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index b49717ae..138af67b 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -79,12 +79,12 @@ class LineHandler(object):
if default_event or not hooks:
if command.isdigit():
self.bot.events.on("received").on("numeric").on(command
- ).call(line=line, line_split=line.split(" "),
- number=command, server=server)
+ ).call(line=original_line, server=server,
+ line_split=original_line.split(" "), number=command)
else:
self.bot.events.on("received").on(command).call(
- line=line, line_split=line.split(" "), command=command,
- server=server)
+ line=original_line, line_split=original_line.split(" "),
+ command=command, server=server)
# ping from the server
def ping(self, event):