mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 20:47:17 +02:00
Re-revert of lockfunc change because I'm a dummy, as per #2228
This commit is contained in:
parent
c09ffbc80a
commit
bc54e38725
1 changed files with 2 additions and 0 deletions
|
|
@ -539,6 +539,8 @@ def objtag(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
Only true if accessed_obj has the specified tag and optional
|
||||
category.
|
||||
"""
|
||||
if hasattr(accessed_obj, "obj"):
|
||||
accessed_obj = accessed_obj.obj
|
||||
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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue