mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 01:06:32 +01:00
Pass category from objtag lockfunc. Resolve #2149
This commit is contained in:
parent
67cc36e86e
commit
0f0ddcd6be
1 changed files with 3 additions and 1 deletions
|
|
@ -539,7 +539,9 @@ def objtag(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
Only true if accessed_obj has the specified tag and optional
|
||||
category.
|
||||
"""
|
||||
return bool(accessed_obj.tags.get(*args))
|
||||
tagkey = args[0] if args else None
|
||||
category = args[1] if len(args) > 1 else None
|
||||
return bool(accessed_obj.tags.get(tagkey, category=category))
|
||||
|
||||
|
||||
def inside(accessing_obj, accessed_obj, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue