Correction to make sure the key isn't changed to prevent delcom failure

This commit is contained in:
Tehom 2016-09-10 22:42:04 -04:00 committed by Griatch
parent 112c5fcd07
commit f76ea7e576

View file

@ -800,9 +800,9 @@ class NickHandler(AttributeHandler):
""" """
if category == "channel": if category == "channel":
key += " $1" nick_regex, nick_template = initialize_nick_templates(key + " $1", replacement + " $1")
replacement += " $1" else:
nick_regex, nick_template = initialize_nick_templates(key, replacement) nick_regex, nick_template = initialize_nick_templates(key, replacement)
super(NickHandler, self).add(key, (nick_regex, nick_template, key, replacement), category=category, **kwargs) super(NickHandler, self).add(key, (nick_regex, nick_template, key, replacement), category=category, **kwargs)
def remove(self, key, category="inputline", **kwargs): def remove(self, key, category="inputline", **kwargs):