1 /* 2 * ---------------------------------------------------------------- 3 * IRC Events 4 * ---------------------------------------------------------------- 5 * Copyright (C) 1997-2009 Jonas Kvinge 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU Lesser General Public License as 9 * published by the Free Software Foundation, either version 3 of the 10 * License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * 20 * $Id: irc_events.h 54 2009-03-18 18:23:29Z jonasio $ 21 * 22 * 23 */ 24 25 #ifdef IRC_EVENTS_H 26 #warning "irc_events.h already included." 27 #else 28 #define IRC_EVENTS_H 29 30 31 #define IRC_EVENT_NONE 0 32 33 #define IRC_EVENT_PRIVMSG 'b' 34 #define IRC_EVENT_ACTION 'a' 35 #define IRC_EVENT_CTCP 'c' 36 #define IRC_EVENT_NOTICE 'd' 37 #define IRC_EVENT_NICK 'n' 38 #define IRC_EVENT_QUIT 'q' 39 #define IRC_EVENT_MODE 'm' 40 #define IRC_EVENT_INVITE 'i' 41 #define IRC_EVENT_JOIN 'j' 42 #define IRC_EVENT_PART 'p' 43 #define IRC_EVENT_KICK 'k' 44 #define IRC_EVENT_TOPIC 't' 45 #define IRC_EVENT_KILL 'e' 46 #define IRC_EVENT_WALLOPS 'w' 47 #define IRC_EVENT_VOICE 'v' 48 #define IRC_EVENT_OP 'o' 49 50 #define IRC_EVENT_NICKFROM 'n' 51 #define IRC_EVENT_NICKTO 'y' 52 #define IRC_EVENT_KICKED 'x' 53 54 55 #define IRC_BITMASK_PRIVMSG 1 56 #define IRC_BITMASK_ACTION 2 57 #define IRC_BITMASK_CTCP 4 58 #define IRC_BITMASK_NOTICE 8 59 #define IRC_BITMASK_NICK 16 60 #define IRC_BITMASK_QUIT 32 61 #define IRC_BITMASK_MODE 64 62 #define IRC_BITMASK_INVITE 128 63 #define IRC_BITMASK_JOIN 256 64 #define IRC_BITMASK_PART 512 65 #define IRC_BITMASK_KICK 1024 66 #define IRC_BITMASK_TOPIC 2048 67 #define IRC_BITMASK_KILL 4096 68 #define IRC_BITMASK_WALLOPS 8192 69 #define IRC_BITMASK_VOICE 16384 70 #define IRC_BITMASK_OP 32768 71 72 #define IRC_BITMASK_NICKFROM 65536 73 #define IRC_BITMASK_NICKTO 131072 74 #define IRC_BITMASK_KICKED 262144 75 76 #endif 77