Added category keyword to AttributeHandler's all() and clear() methods.

This commit is contained in:
Griatch 2013-08-25 19:15:27 +02:00
parent 48ddabdf25
commit 0a42b73824
3 changed files with 17 additions and 9 deletions

View file

@ -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: