From 0f0ddcd6be104c9905ec554b028420367d3dc701 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 28 Jun 2020 11:22:07 +0200 Subject: [PATCH] Pass category from objtag lockfunc. Resolve #2149 --- evennia/locks/lockfuncs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evennia/locks/lockfuncs.py b/evennia/locks/lockfuncs.py index eda4c2d733..4b23aae515 100644 --- a/evennia/locks/lockfuncs.py +++ b/evennia/locks/lockfuncs.py @@ -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):