mirror of
https://github.com/evennia/evennia.git
synced 2026-04-07 00:45:22 +02:00
Handle boolean input in $search func
This commit is contained in:
parent
73a7b4ac56
commit
18718eb5e4
1 changed files with 1 additions and 1 deletions
|
|
@ -1124,7 +1124,7 @@ def funcparser_callable_search(*args, caller=None, access="control", **kwargs):
|
|||
for key, value in kwargs.items()
|
||||
if key not in ("funcparser", "raise_errors", "type", "return_list")
|
||||
}
|
||||
return_list = kwargs.pop("return_list", "false").lower() == "true"
|
||||
return_list = str(kwargs.pop("return_list", "false")).lower() == "true"
|
||||
|
||||
if not args:
|
||||
return [] if return_list else None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue