From f76ea7e576c19ca7a192670a657a9df67fd252ab Mon Sep 17 00:00:00 2001 From: Tehom Date: Sat, 10 Sep 2016 22:42:04 -0400 Subject: [PATCH] Correction to make sure the key isn't changed to prevent delcom failure --- evennia/typeclasses/attributes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evennia/typeclasses/attributes.py b/evennia/typeclasses/attributes.py index 815735eae0..72967cd12b 100644 --- a/evennia/typeclasses/attributes.py +++ b/evennia/typeclasses/attributes.py @@ -800,9 +800,9 @@ class NickHandler(AttributeHandler): """ if category == "channel": - key += " $1" - replacement += " $1" - nick_regex, nick_template = initialize_nick_templates(key, replacement) + nick_regex, nick_template = initialize_nick_templates(key + " $1", replacement + " $1") + else: + nick_regex, nick_template = initialize_nick_templates(key, replacement) super(NickHandler, self).add(key, (nick_regex, nick_template, key, replacement), category=category, **kwargs) def remove(self, key, category="inputline", **kwargs):