def is_privileged(badges):
    """
    Returns if a user has mod privileges, based on their badges.
    """
    return ('broadcaster' in badges 
            or 'mod' in badges 
            or 'admin' in badges 
            or 'staff' in badges)