Actually pass args_split in to _find_command_hook
This commit is contained in:
parent
c9b9827c14
commit
02998efc43
1 changed files with 2 additions and 2 deletions
|
@ -227,7 +227,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
if command:
|
if command:
|
||||||
hook, args_split = self._find_command_hook(event["server"], command,
|
hook, args_split = self._find_command_hook(event["server"], command,
|
||||||
True)
|
True, args_split)
|
||||||
if hook:
|
if hook:
|
||||||
self.command(event["server"], event["channel"], True,
|
self.command(event["server"], event["channel"], True,
|
||||||
event["user"], command, args_split, event["tags"],
|
event["user"], command, args_split, event["tags"],
|
||||||
|
@ -259,7 +259,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
args_split = event["message_split"][1:]
|
args_split = event["message_split"][1:]
|
||||||
|
|
||||||
hook, args_split = self._find_command_hook(event["server"], command,
|
hook, args_split = self._find_command_hook(event["server"], command,
|
||||||
False)
|
False, args_split)
|
||||||
|
|
||||||
if hook:
|
if hook:
|
||||||
self.command(event["server"], event["user"], False,
|
self.command(event["server"], event["user"], False,
|
||||||
|
|
Loading…
Reference in a new issue