diff options
| author | 2019-01-29 15:38:04 +0000 | |
|---|---|---|
| committer | 2019-01-29 15:38:04 +0000 | |
| commit | a501fdea1f25682bad95d1d252461b02f67ae4e1 (patch) | |
| tree | eaf031744ff457cfe9cfad367bfede361eec4b4e /modules/commands.py | |
| parent | We don't have an event object in `_has_channel_access` (channel_access.py) (diff) | |
| signature | ||
Stop processing a command when we've decided the user doesn't have permission
(commands.py)
Diffstat (limited to 'modules/commands.py')
| -rw-r--r-- | modules/commands.py | 1 |
1 files changed, 1 insertions, 0 deletions
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)) |
