From 112c5fcd0799e95869becb5f243944d8c1e424ca Mon Sep 17 00:00:00 2001 From: Tehom Date: Sat, 10 Sep 2016 22:15:10 -0400 Subject: [PATCH] Attempt to fix nicknames for channels not working --- evennia/typeclasses/attributes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evennia/typeclasses/attributes.py b/evennia/typeclasses/attributes.py index 6ce5e6bf8a..815735eae0 100644 --- a/evennia/typeclasses/attributes.py +++ b/evennia/typeclasses/attributes.py @@ -799,6 +799,9 @@ class NickHandler(AttributeHandler): kwargs (any, optional): These are passed on to `AttributeHandler.get`. """ + if category == "channel": + key += " $1" + replacement += " $1" nick_regex, nick_template = initialize_nick_templates(key, replacement) super(NickHandler, self).add(key, (nick_regex, nick_template, key, replacement), category=category, **kwargs)