'Add a new nick.
Args:
key (str): A key (or template) for the nick to match for.
replacement (str): The string (or template) to replace `key` with (the "nickname").
category (str, optional): the category within which to
retrieve the nick. The "inputline" means replacing data
sent by the user.
kwargs (any, optional): These are passed on to `AttributeHandler.get`.'

def add(self, key, replacement, category='inputline', **kwargs):

    if (category == 'channel'):
        (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)
