Few more fixes for the command system
This commit is contained in:
parent
cae86299e4
commit
880952b5c3
2 changed files with 2 additions and 3 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue