mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 16:26:30 +01:00
Fixed a bug in the search method causing it to fail for commands ignoring the error handler (such as drop). Resolves issue 252.
This commit is contained in:
parent
0dae03156c
commit
ee450a4fed
1 changed files with 3 additions and 2 deletions
|
|
@ -581,8 +581,9 @@ class ObjectDB(TypedObject):
|
|||
attribute_name=attribute_name,
|
||||
candidates=candidates,
|
||||
exact=exact)
|
||||
if not ignore_errors:
|
||||
result = _AT_SEARCH_RESULT(self, ostring, results, global_search)
|
||||
if ignore_errors:
|
||||
return results
|
||||
result = _AT_SEARCH_RESULT(self, ostring, results, global_search)
|
||||
if player and result:
|
||||
return result.player
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue