Seems DefaultObject search should return a list, even if _AT_SEARCH_RESULT returns None

This commit is contained in:
David Estrada 2020-04-20 18:59:55 -07:00
parent 508052ed2e
commit 8e294e68ff

View file

@ -498,7 +498,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
use_dbref=use_dbref, use_dbref=use_dbref,
) )
return _AT_SEARCH_RESULT( matches = _AT_SEARCH_RESULT(
results, results,
self, self,
query=searchdata, query=searchdata,
@ -506,6 +506,9 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
nofound_string=nofound_string, nofound_string=nofound_string,
multimatch_string=multimatch_string, multimatch_string=multimatch_string,
) )
if matches:
return matches
return []
def search_account(self, searchdata, quiet=False): def search_account(self, searchdata, quiet=False):
""" """