From 2676f4574edaaeac0350bf127d9e40cba80da8dc Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 7 Jan 2020 10:16:21 +0100 Subject: [PATCH] Fix stupid bug in holds() lockfunc --- evennia/locks/lockfuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/locks/lockfuncs.py b/evennia/locks/lockfuncs.py index d49c3431e4..ee9c5d85c2 100644 --- a/evennia/locks/lockfuncs.py +++ b/evennia/locks/lockfuncs.py @@ -611,7 +611,7 @@ def holds(accessing_obj, accessed_obj, *args, **kwargs): if len(args) == 1: # command is holds(dbref/key) - check if given objname/dbref is held by accessing_ob return check_holds(args[0]) - elif len(args=2): + elif len(args) > 1: # command is holds(attrname, value) check if any held object has the given attribute and value for obj in contents: if obj.attributes.get(args[0]) == args[1]: