mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 14:26:30 +01:00
Further work on tweaking the emote system.
This commit is contained in:
parent
382846ae08
commit
0cb2daad83
1 changed files with 2 additions and 1 deletions
|
|
@ -582,6 +582,7 @@ class RecogHandler(object):
|
|||
self.ref2recog = {}
|
||||
self.obj2regex = {}
|
||||
self.obj2recog = {}
|
||||
self._cache()
|
||||
|
||||
def _cache(self):
|
||||
"""
|
||||
|
|
@ -890,7 +891,7 @@ class CmdRecog(Command): # assign personal alias to object in room
|
|||
caller.msg("Usage: recog <sdesc> as <alias>")
|
||||
return
|
||||
sdesc = self.sdesc
|
||||
alias = self.alias
|
||||
alias = self.alias.rstrip(".?!")
|
||||
prefixed_sdesc = sdesc if sdesc.startswith(_PREFIX) else _PREFIX + sdesc
|
||||
candidates = caller.location.contents
|
||||
matches = parse_sdescs_and_recogs(caller, candidates, prefixed_sdesc, search_mode=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue