diff options
| author | 2019-09-12 21:53:35 +0100 | |
|---|---|---|
| committer | 2019-09-12 21:53:52 +0100 | |
| commit | 04489ce90a32008b9a719037a8ed5f3a85938788 (patch) | |
| tree | 4266decbe983242b834a9f5edf816a445976f675 /modules | |
| parent | limit !flags mode changes to 3-per-line, add comment as to why (diff) | |
| signature | ||
return command (in case resolved alias) from _find_command_hook()
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/commands/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py index 88bea18e..c0f702b7 100644 --- a/modules/commands/__init__.py +++ b/modules/commands/__init__.py @@ -93,7 +93,7 @@ class Module(ModuleManager.BaseModule): try: args_split = self._alias_arg_replace(new_args, args_split) except IndexError: - return None, None + return None, None, None hook = None channel_skip = False @@ -124,7 +124,7 @@ class Module(ModuleManager.BaseModule): if not hook and (private_skip or channel_skip): raise BadContextException("channel" if channel_skip else "private") - return hook, args_split + return hook, command, args_split def _check(self, context, kwargs, requests=[]): event_hook = self.events.on(context).on("command") @@ -281,8 +281,8 @@ class Module(ModuleManager.BaseModule): return try: - hook, args_split = self._find_command_hook(event["server"], - command, True, args_split) + hook, command, args_split = self._find_command_hook( + event["server"], command, True, args_split) except BadContextException: event["channel"].send_message( "%s: That command is not valid in a channel" % @@ -333,8 +333,8 @@ class Module(ModuleManager.BaseModule): args_split = event["message_split"][1:] try: - hook, args_split = self._find_command_hook(event["server"], - command, False, args_split) + hook, command, args_split = self._find_command_hook( + event["server"], command, False, args_split) except BadContextException: event["user"].send_message( "That command is not valid in a PM") |
