muhstik- irc flooding solution |
git clone git://git.acid.vegas/muhstik.git |
Log | Files | Refs | Archive | README |
globals.h (1681B)
1 #ifndef GLOBAL_H 2 #define GLOBAL_H 3 4 #define VERSION "4.2.3" 5 /* 6 * The above `#define' _must_ be line number 4 for the `pre-commit' hook to 7 * work, and the MOTD file to stay intact. 8 */ 9 10 /* {{{ List lengths */ 11 #define MAX_AOPS 128 12 #define MAX_PROTS 128 13 #define MAX_JUPES 128 14 #define MAX_SHITS 128 15 #define MAX_CHANS 64 16 #define MAX_NICKS 1024 17 #define MAX_IDENTS 1024 18 #define MAX_NAMES 1024 19 #define MAX_GROUPS 16 20 #define MAX_CLONES 1024 21 #define MAX_BROTHERS 1024 22 #define MAX_MUTEX 2 23 /* }}} */ 24 /* {{{ Internal commands */ 25 #define ADDOP "+aop" 26 #define RMOP "-aop" 27 #define ADDPROT "+prot" 28 #define RMPROT "-prot" 29 #define ADDJUPE "+jupe" 30 #define RMJUPE "-jupe" 31 #define ADDSHIT "+shit" 32 #define RMSHIT "-shit" 33 #define ADDSCAN "+scan" 34 #define RMSCAN "-scan" 35 #define KICKBAN "kb" 36 #define MASSKICK "mk" 37 #define MASSKICKBAN "mkb" 38 #define TAKEOVER "to" 39 #define MASSOP "mo" 40 #define MASSDEOP "md" 41 #define MASSUNBAN "mu" 42 #define NICKS "nicks" 43 #define NICKLIST "nicklist" 44 #define ECHO "echo" 45 #define CHANKEY "chankey" 46 #define STATUS "stat" 47 #define MUTE "mute" 48 #define PEACE "peace" 49 #define AGGRESS "agg" 50 #define RANDOM "random" 51 #define KILL "kill" 52 #define SELECT "select" 53 #define LOAD "load" 54 /* }}} */ 55 /* {{{ Messages */ 56 #define KICK_REAS "/!\\ this channel has moved to irc.gnaa.eu #gnaa /!\\" 57 #define SHIT_REAS "/!\\ this channel has moved to irc.gnaa.eu #gnaa /!\\" 58 #define SETON "activated" 59 #define CLOSE "+milk 1488 killjews" 60 /* }}} */ 61 /* {{{ Buffer sizes */ 62 #define MINIBUF 32 63 #define MINIBUF_TXT "32" 64 #define MEDBUF 128 65 #define MEDBUF_TXT "128" 66 #define BIGBUF 1024 67 #define BIGBUF_TXT "1024" 68 /* }}} */ 69 70 /* To avoid mixing sleep() and usleep() */ 71 #define sleep(t)\ 72 usleep (t*1000000) 73 74 #endif