Fix command length (s/args/nargs)

This commit is contained in:
Florian Bruhin 2014-05-02 11:28:11 +02:00
parent 615a2e0bb5
commit 554d5d2745

View File

@ -177,7 +177,7 @@ class CommandManager:
self._args = args
retargs = args[:]
if text.endswith(' ') and (cmd.split is True or
len(args) < cmd.args[0]):
len(args) < cmd.nargs[0]):
retargs.append('')
return [cmdstr] + retargs