mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 23:17:17 +02:00
Seems DefaultObject search should return a list, even if _AT_SEARCH_RESULT returns None
This commit is contained in:
parent
508052ed2e
commit
8e294e68ff
1 changed files with 4 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
use_dbref=use_dbref,
|
||||
)
|
||||
|
||||
return _AT_SEARCH_RESULT(
|
||||
matches = _AT_SEARCH_RESULT(
|
||||
results,
|
||||
self,
|
||||
query=searchdata,
|
||||
|
|
@ -506,6 +506,9 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
nofound_string=nofound_string,
|
||||
multimatch_string=multimatch_string,
|
||||
)
|
||||
if matches:
|
||||
return matches
|
||||
return []
|
||||
|
||||
def search_account(self, searchdata, quiet=False):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue