diff options
Diffstat (limited to 'modules/commands.py')
| -rw-r--r-- | modules/commands.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/commands.py b/modules/commands.py index 3660beb7..fbe4eb23 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -140,7 +140,11 @@ class Module(ModuleManager.BaseModule): stderr.write(returned).send() target.buffer.skip_next() return + args_split = event["message_split"][args_index:] + if hook.kwargs.get("remove_empty", True): + args_split = list(filter(None, args_split)) + min_args = hook.kwargs.get("min_args") if min_args and len(args_split) < min_args: if "usage" in hook.kwargs: |
