mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 15:37:17 +02:00
Made unittesting suite work again.
This commit is contained in:
parent
85225b3084
commit
41087789ce
3 changed files with 4 additions and 12 deletions
|
|
@ -374,15 +374,8 @@ class ObjectDB(TypedObject):
|
|||
return self.typeclass
|
||||
|
||||
if use_nicks:
|
||||
# get all valid nicks to search
|
||||
nicks = self.nicks.get(category="object")
|
||||
if self.has_player:
|
||||
pnicks = self.nicks.get(category="player")
|
||||
nicks = nicks + pnicks
|
||||
for nick in nicks:
|
||||
if searchdata == nick.db_key:
|
||||
searchdata = nick.strvalue
|
||||
break
|
||||
# do nick-replacement on search
|
||||
searchdata = self.nicks.nickreplace(searchdata, categories=("object", "player"), include_player=True)
|
||||
|
||||
candidates=None
|
||||
if(global_search or (is_string and searchdata.startswith("#") and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue