From 24f247180caa03b972c0042dd90d0c23f58437b4 Mon Sep 17 00:00:00 2001 From: InspectorCaracal <51038201+InspectorCaracal@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:34:19 -0700 Subject: [PATCH] fix rpsystem search --- evennia/contrib/rpg/rpsystem/rpsystem.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/evennia/contrib/rpg/rpsystem/rpsystem.py b/evennia/contrib/rpg/rpsystem/rpsystem.py index 6159c471d3..ae54ac8a52 100644 --- a/evennia/contrib/rpg/rpsystem/rpsystem.py +++ b/evennia/contrib/rpg/rpsystem/rpsystem.py @@ -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):