Fixed arguments check in raw commands

This commit is contained in:
red-agent 2009-09-17 11:36:47 +03:00
parent 91e28d0ed9
commit 90d378941b
1 changed files with 4 additions and 1 deletions

View File

@ -512,7 +512,10 @@ class CommandProcessor(object):
args.sort(key=itemgetter(1))
if spec_len > 1:
stopper, (start, end) = args[spec_len - 2]
try:
stopper, (start, end) = args[spec_len - 2]
except IndexError:
raise CommandError("Missing arguments", command)
raw = arguments[end:]
raw = raw.strip() or None