Misunderstood what the quiet flag was doing. If quiet flag is set, DefaultObject will return a list

This commit is contained in:
David Estrada 2020-04-20 19:20:50 -07:00
parent 8e294e68ff
commit 638bb2f4e7

View file

@ -498,7 +498,10 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
use_dbref=use_dbref, use_dbref=use_dbref,
) )
matches = _AT_SEARCH_RESULT( if quiet:
return list(results)
return _AT_SEARCH_RESULT(
results, results,
self, self,
query=searchdata, query=searchdata,
@ -506,9 +509,6 @@ 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):
""" """