mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 23:06:31 +01:00
Misunderstood what the quiet flag was doing. If quiet flag is set, DefaultObject will return a list
This commit is contained in:
parent
8e294e68ff
commit
638bb2f4e7
1 changed files with 4 additions and 4 deletions
|
|
@ -498,7 +498,10 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
use_dbref=use_dbref,
|
||||
)
|
||||
|
||||
matches = _AT_SEARCH_RESULT(
|
||||
if quiet:
|
||||
return list(results)
|
||||
|
||||
return _AT_SEARCH_RESULT(
|
||||
results,
|
||||
self,
|
||||
query=searchdata,
|
||||
|
|
@ -506,9 +509,6 @@ 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