Fix stupid bug in holds() lockfunc
This commit is contained in:
parent
3c08447f59
commit
2676f4574e
1 changed files with 1 additions and 1 deletions
|
|
@ -611,7 +611,7 @@ def holds(accessing_obj, accessed_obj, *args, **kwargs):
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
# command is holds(dbref/key) - check if given objname/dbref is held by accessing_ob
|
# command is holds(dbref/key) - check if given objname/dbref is held by accessing_ob
|
||||||
return check_holds(args[0])
|
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
|
# command is holds(attrname, value) check if any held object has the given attribute and value
|
||||||
for obj in contents:
|
for obj in contents:
|
||||||
if obj.attributes.get(args[0]) == args[1]:
|
if obj.attributes.get(args[0]) == args[1]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue