mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #2784 from InspectorCaracal/rpsystem-aliases
rpsystem: Always include aliases as candidates
This commit is contained in:
commit
6c8eef5961
1 changed files with 2 additions and 1 deletions
|
|
@ -350,7 +350,8 @@ def parse_sdescs_and_recogs(sender, candidates, string, search_mode=False, case_
|
|||
candidate_map.append((obj, obj.sdesc.get()))
|
||||
# if no sdesc, include key plus aliases instead
|
||||
else:
|
||||
candidate_map.extend([(obj, obj.key)] + [(obj, alias) for alias in obj.aliases.all()])
|
||||
candidate_map.append((obj, obj.key))
|
||||
candidate_map.extend([(obj, alias) for alias in obj.aliases.all()])
|
||||
|
||||
# escape mapping syntax on the form {#id} if it exists already in emote,
|
||||
# if so it is replaced with just "id".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue