From 05fd75198e59c1683eabeaec363e973de3e27635 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 14 Sep 2019 20:45:58 +0200 Subject: [PATCH] Fix prototype_tag issue in olc. Resolve #1918 --- evennia/prototypes/menus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/prototypes/menus.py b/evennia/prototypes/menus.py index 5f38ab8f69..89646ff0b9 100644 --- a/evennia/prototypes/menus.py +++ b/evennia/prototypes/menus.py @@ -1748,6 +1748,7 @@ def node_prototype_desc(caller): def _caller_prototype_tags(caller): prototype = _get_menu_prototype(caller) tags = prototype.get("prototype_tags", []) + tags = [tag[0] if isinstance(tag, tuple) else tag for tag in tags] return tags @@ -1771,8 +1772,7 @@ def _add_prototype_tag(caller, tag_string, **kwargs): tag = tag_string.strip().lower() if tag: - prot = _get_menu_prototype(caller) - tags = prot.get('prototype_tags', []) + tags = _caller_prototype_tags(caller) exists = tag in tags if 'delete' in kwargs: