Few more fixes for the command system

This commit is contained in:
red-agent 2009-09-13 16:40:33 +03:00
parent cae86299e4
commit 880952b5c3
2 changed files with 2 additions and 3 deletions

View File

@ -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():

View File

@ -29,8 +29,6 @@ class CommonCommands(ChatMiddleware):
PrivateChatControl or GroupchatControl when command is being called.
"""
IS_COMMAND_PROCESSOR = True
@command
def clear(self):
"""