mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 21:17:17 +02:00
Make sure to strip key/value of whitespace in lockfunc kwargs. Resolves #2150
This commit is contained in:
parent
a1014089d3
commit
a3edbca209
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ class LockHandler(object):
|
|||
elist.append(_("Lock: lock-function '%s' is not available.") % funcstring)
|
||||
continue
|
||||
args = list(arg.strip() for arg in rest.split(",") if arg and "=" not in arg)
|
||||
kwargs = dict([arg.split("=", 1) for arg in rest.split(",") if arg and "=" in arg])
|
||||
kwargs = dict([(part.strip() for part in arg.split("=", 1)) for arg in rest.split(",") if arg and "=" in arg])
|
||||
lock_funcs.append((func, args, kwargs))
|
||||
evalstring = evalstring.replace(funcstring, "%s")
|
||||
if len(lock_funcs) < nfuncs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue