mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 04:27:16 +02:00
Merge commit. Resolvs Issue 273.
This commit is contained in:
commit
f95198fbdb
3 changed files with 6 additions and 4 deletions
|
|
@ -73,11 +73,11 @@ def cmdparser(raw_string, cmdset, caller, match_index=None):
|
|||
matches = [match for match in matches if match[2].access(caller, 'cmd')]
|
||||
|
||||
if len(matches) > 1:
|
||||
# See if it helps to analyze the match with preserved case but only if
|
||||
# See if it helps to analyze the match with preserved case but only if
|
||||
# it leaves at least one match.
|
||||
trimmed = [match for match in matches if raw_string.startswith(match[0])]
|
||||
if trimmed:
|
||||
matches = trimmed
|
||||
matches = trimmed
|
||||
|
||||
if len(matches) > 1:
|
||||
# we still have multiple matches. Sort them by count quality.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue