def catch_all(data):
    ignore = ['CONNECTED', 'PING', 'MODE', 'JOIN', 'PART', 'QUIT', 'INVITE', 'KICK', 'BAN']
    if data.type == PRIVMSG and data.type == NOTICE:
        channel = data.args[1]
        if channel.startswith('#'):
            channel = channel[1:]
            message = data.args[2]
            if data.type == NOTICE:
                message = 'NOTICE:' + message
            relay_outs.append({'type': 'message', 'channel': channel, 'user': data.nick, 'text': message})
        else:
            relay_outs.append({'debug': True, 'type': data.type, 'description': 'pm from {}'.format(data.user)})
    else:
        relay_outs.append({'debug': True, 'type': data.type, 'description': unicode(data)})
dataset/ETHPy150Open youknowone/slairck/irc/relay_irc.py/catch_all/operator `or` -> `and`