From a501fdea1f25682bad95d1d252461b02f67ae4e1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 29 Jan 2019 15:38:04 +0000 Subject: [PATCH] Stop processing a command when we've decided the user doesn't have permission (commands.py) --- modules/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/commands.py b/modules/commands.py index 672c94cc..7dca06cd 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -188,6 +188,7 @@ class Module(ModuleManager.BaseModule): if error: stderr.write(error).send(command_method) target.buffer.skip_next() + return if hook.kwargs.get("remove_empty", True): args_split = list(filter(None, args_split))