Skip to content
Snippets Groups Projects
Commit 880952b5 authored by red-agent's avatar red-agent
Browse files

Few more fixes for the command system

parent cae86299
No related branches found
No related tags found
No related merge requests found
......@@ -466,7 +466,8 @@ class CommandProcessor(object):
optional = args[hard_len:]
args = args[:hard_len]
args.insert(spec_args.index('__optional__'), optional)
raise CommandInternalError("Cant have both, __optional__ and *args")
else:
raise CommandInternalError("Cant have both, __optional__ and *args")
if command.dashes:
for key, value in kwargs.items():
......
......@@ -29,8 +29,6 @@ class CommonCommands(ChatMiddleware):
PrivateChatControl or GroupchatControl when command is being called.
"""
IS_COMMAND_PROCESSOR = True
@command
def clear(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment