fixing bug in dispatch made by last commit

This commit is contained in:
Ryan Hitchman 2010-07-08 12:27:37 -06:00
parent b0259336cd
commit ee69022baa
1 changed files with 1 additions and 1 deletions

View File

@ -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