'Get object based on its key or nick.
Args:
key (str, optional): The attribute\'s key to search for
nick (str, optional): The nickname to search for
category (str, optional): The category of the nick
to search for.
Returns:
obj (list): Objects having the matching Nicks.'

def get_by_nick(self, key=None, nick=None, category='inputline'):

    return self.get_by_attribute(key=key, category=category, strvalue=nick, attrtype='nick')
