default events on IRCLineHandler should use original_line, not line
This commit is contained in:
parent
9b7c7035f9
commit
bfca9bc207
1 changed files with 4 additions and 4 deletions
|
@ -79,12 +79,12 @@ class LineHandler(object):
|
||||||
if default_event or not hooks:
|
if default_event or not hooks:
|
||||||
if command.isdigit():
|
if command.isdigit():
|
||||||
self.bot.events.on("received").on("numeric").on(command
|
self.bot.events.on("received").on("numeric").on(command
|
||||||
).call(line=line, line_split=line.split(" "),
|
).call(line=original_line, server=server,
|
||||||
number=command, server=server)
|
line_split=original_line.split(" "), number=command)
|
||||||
else:
|
else:
|
||||||
self.bot.events.on("received").on(command).call(
|
self.bot.events.on("received").on(command).call(
|
||||||
line=line, line_split=line.split(" "), command=command,
|
line=original_line, line_split=original_line.split(" "),
|
||||||
server=server)
|
command=command, server=server)
|
||||||
|
|
||||||
# ping from the server
|
# ping from the server
|
||||||
def ping(self, event):
|
def ping(self, event):
|
||||||
|
|
Loading…
Reference in a new issue