Attempt to fix nicknames for channels not working

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

View file

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