Пример #1
0
                    ignore = True

        tmp = irc.is_ping(line)
        if tmp:
            irc.send_pong(tmp)
            continue

        if not joined and line == ":"+nick+" MODE "+nick+" :+i":
            for channel in channels:
                irc.join(channel)
            joined = True

        if not joined:
            continue

        tmp = irc.is_message(line)
        if not ignore and tmp is not None:
            process_message(tmp[2], tmp[1], tmp[0])
            flood_check(tmp[1], tmp[0], tmp[2])
            continue

        tmp = irc.is_quit(line)
        if tmp is not None:
            process_quit(tmp[0], tmp[1])
            continue

        tmp = irc.is_kick(line)
        if tmp is not None:
            process_kick(tmp[0], tmp[1], tmp[2], tmp[3])
            continue