'Gets the value for the first name which has it set.
`names` is a list of channel and/or user names. Returns None if none of
the names have the key set.'

def get_preferred_value(self, names, key):

    for name in names:
        value = self.get_nick_or_channel_value(name, key)
        if (value is not None):
            return value
