mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 21:47:17 +02:00
Added category keyword to AttributeHandler's all() and clear() methods.
This commit is contained in:
parent
48ddabdf25
commit
0a42b73824
3 changed files with 17 additions and 9 deletions
|
|
@ -568,9 +568,9 @@ class ObjectDB(TypedObject):
|
|||
if use_nicks:
|
||||
nicktype = "object"
|
||||
# get all valid nicks to search
|
||||
nicks = self.nicks.get(category="object_nick_%s" % nicktype)
|
||||
nicks = self.nicks.all(category="object_nick_%s" % nicktype)
|
||||
if self.has_player:
|
||||
pnicks = self.nicks.get(category="player_nick_%s" % nicktype)
|
||||
pnicks = self.nicks.all(category="player_nick_%s" % nicktype)
|
||||
nicks = nicks + pnicks
|
||||
for nick in nicks:
|
||||
if searchdata == nick.db_key:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue