aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-06 17:25:58 +0100
committerGravatar jesopo2018-09-06 17:25:58 +0100
commite76c3b323047d61c21d10718d367cf19a9cdc291 (patch)
treeb7cac2c36d70ad213190998c7a9d6d9d538a799f /modules
parentAdd !topic and !topicappend in channel_op.py (diff)
signature
Don't strip out empty arguments on commands.py
Diffstat (limited to 'modules')
-rw-r--r--modules/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands.py b/modules/commands.py
index a30c605d..6cac8c43 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -124,7 +124,7 @@ class Module(object):
stderr.write(returned).send()
buffer.skip_next()
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")
if min_args and len(args_split) < min_args:
if "usage" in hook.kwargs: