From 051e4347f9a521f385881f2ea225ca8c20f5e7e2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 30 Jan 2019 11:41:25 +0000 Subject: Actually remove call to `preprocess.command` to after min_args check (commands.py) --- modules/commands.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/commands.py') 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 -- cgit v1.3.1-10-gc9f91