Let caller.search_account query all Account classes. Resolves #1417.
This commit is contained in:
parent
10cd8123d6
commit
f68674fea9
2 changed files with 11 additions and 3 deletions
|
|
@ -19,6 +19,7 @@ from evennia.scripts.scripthandler import ScriptHandler
|
|||
from evennia.commands import cmdset, command
|
||||
from evennia.commands.cmdsethandler import CmdSetHandler
|
||||
from evennia.commands import cmdhandler
|
||||
from evennia.utils import search
|
||||
from evennia.utils import logger
|
||||
from evennia.utils.utils import (variable_from_module, lazy_property,
|
||||
make_iter, to_unicode, is_iter)
|
||||
|
|
@ -435,7 +436,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
if searchdata.lower() in ("me", "self",):
|
||||
return [self.account] if quiet else self.account
|
||||
|
||||
results = self.account.__class__.objects.account_search(searchdata)
|
||||
results = search.search_account(searchdata)
|
||||
|
||||
if quiet:
|
||||
return results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue