Don't strip out empty arguments on commands.py
This commit is contained in:
parent
73bdaff977
commit
e76c3b3230
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class Module(object):
|
||||||
stderr.write(returned).send()
|
stderr.write(returned).send()
|
||||||
buffer.skip_next()
|
buffer.skip_next()
|
||||||
return
|
return
|
||||||
args_split = list(filter(None, event["message_split"][args_index:]))
|
args_split = event["message_split"][args_index:]
|
||||||
min_args = hook.kwargs.get("min_args")
|
min_args = hook.kwargs.get("min_args")
|
||||||
if min_args and len(args_split) < min_args:
|
if min_args and len(args_split) < min_args:
|
||||||
if "usage" in hook.kwargs:
|
if "usage" in hook.kwargs:
|
||||||
|
|
Loading…
Reference in a new issue