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):