fixing bug in dispatch made by last commit
This commit is contained in:
parent
b0259336cd
commit
ee69022baa
|
@ -129,7 +129,7 @@ def match_command(command):
|
||||||
prefix = filter(lambda x: x.startswith(command), commands)
|
prefix = filter(lambda x: x.startswith(command), commands)
|
||||||
if len(prefix) == 1:
|
if len(prefix) == 1:
|
||||||
return prefix[0]
|
return prefix[0]
|
||||||
elif prefix:
|
elif prefix and command not in prefix:
|
||||||
return prefix
|
return prefix
|
||||||
|
|
||||||
return command
|
return command
|
||||||
|
|
Loading…
Reference in New Issue