diff options
| author | 2019-01-30 11:41:25 +0000 | |
|---|---|---|
| committer | 2019-01-30 11:41:25 +0000 | |
| commit | 051e4347f9a521f385881f2ea225ca8c20f5e7e2 (patch) | |
| tree | 232a96a47c0438bfe473f471dee650b810c38b68 /modules/commands.py | |
| parent | Correctly check if we're in a channel command before checking if the current (diff) | |
| signature | ||
Actually remove call to `preprocess.command` to after min_args check
(commands.py)
Diffstat (limited to 'modules/commands.py')
| -rw-r--r-- | modules/commands.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/commands.py b/modules/commands.py index 5c6ab118..14979cfd 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -173,11 +173,6 @@ class Module(ModuleManager.BaseModule): stderr = StdErr(event["server"], module_name, target, msgid) command_method = self._command_method(target, event["server"]) - returns = self.events.on("preprocess.command").call_unsafe( - hook=hook, user=event["user"], server=event["server"], - target=target, is_channel=is_channel, tags=event["tags"], - args_split=args_split) - if hook.kwargs.get("remove_empty", True): args_split = list(filter(None, args_split)) @@ -195,6 +190,11 @@ class Module(ModuleManager.BaseModule): stderr.write("Not enough arguments (minimum: %d)" % min_args).send(command_method) else: + returns = self.events.on("preprocess.command").call_unsafe( + hook=hook, user=event["user"], server=event["server"], + target=target, is_channel=is_channel, tags=event["tags"], + args_split=args_split) + hard_fail = False force_success = False error = None |
