_parse_flags() should always return 2 objects

This commit is contained in:
jesopo 2019-09-12 23:13:02 +01:00
parent 7094d94cd7
commit 710caebbc4

View file

@ -239,7 +239,7 @@ class Module(ModuleManager.BaseModule):
elif s[0] == "-": elif s[0] == "-":
return False, list(s[1:]) return False, list(s[1:])
else: else:
return None return None, None
@utils.hook("received.command.flags") @utils.hook("received.command.flags")
@utils.kwarg("channel_only", True) @utils.kwarg("channel_only", True)