mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #3441 from InspectorCaracal/patch-13
Fix rpsystem search
This commit is contained in:
commit
d893cfd46e
1 changed files with 2 additions and 7 deletions
|
|
@ -1320,12 +1320,7 @@ class ContribRPObject(DefaultObject):
|
|||
def get_search_result(
|
||||
self,
|
||||
searchdata,
|
||||
attribute_name=None,
|
||||
typeclass=None,
|
||||
candidates=None,
|
||||
exact=False,
|
||||
use_dbref=None,
|
||||
tags=None,
|
||||
**kwargs,
|
||||
):
|
||||
"""
|
||||
|
|
@ -1352,12 +1347,12 @@ class ContribRPObject(DefaultObject):
|
|||
|
||||
if not results and is_builder:
|
||||
# builders get a chance to search only by key+alias
|
||||
results = search_obj(searchdata)
|
||||
results = search_obj(searchdata, candidates=candidates, **kwargs)
|
||||
else:
|
||||
# global searches / #drefs end up here. Global searches are
|
||||
# only done in code, so is controlled, #dbrefs are turned off
|
||||
# for non-Builders.
|
||||
results = search_obj(searchdata)
|
||||
results = search_obj(searchdata, **kwargs)
|
||||
return results
|
||||
|
||||
def get_posed_sdesc(self, sdesc, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue