mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
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:
|
||||
# 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]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue