'Gets the value `key` associated to the nick or channel  `name`.'

def get_nick_or_channel_value(self, name, key):

    name = Identifier(name)
    if name.is_nick():
        return self.get_nick_value(name, key)
    else:
        return self.get_channel_value(name, key)
