4 #define NEONSERV_VERSION "5.0.1-dev"
7 #ifndef BOTWAR_ALERT_CHAN
8 #define BOTWAR_ALERT_CHAN NULL
15 #include <sys/types.h>
16 #include <sys/socket.h>
17 #include <netinet/in.h>
18 #include <arpa/inet.h>
25 #define PRINTF_LIKE(M,N) __attribute__((format (printf, M, N)))
27 #define PRINTF_LIKE(M,N)
31 #define UNUSED_ARG(ARG) ARG __attribute__((unused))
32 #elif defined(S_SPLINT_S)
33 #define UNUSED_ARG(ARG) /*@unused@*/ ARG
34 #define const /*@observer@*/ /*@temp@*/
36 #define UNUSED_ARG(ARG) ARG
39 #define STRINGIFY_(x) #x
40 #define STRINGIFY(x) STRINGIFY_(x)
43 #if defined(__GNUC_PATCHLEVEL__)
44 #define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__) "." STRINGIFY(__GNUC_PATCHLEVEL__)
46 #define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__)
48 #elif defined (__IMAGECRAFT__)
49 #define COMPILER "ICCAVR"
51 #define COMPILER "Unknown"
54 #define SOCKET_SELECT_TIME 2
62 #define CHANNELLEN 200
65 #define MAXNUMPARAMS 200 /* maximum number of parameters in one line */
66 #define MAXLANGUAGES 5
68 #define INVITE_TIMEOUT 30
69 #define BOTWAR_DETECTION_TIME 7
70 #define BOTWAR_DETECTION_EVENTS 6
73 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^-_`"
74 //the first char is a little bit different
76 // 1234567890123456789012345678901234567890123456789012345678 9012 62
77 #define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
78 #define VALID_NICK_CHARS_FIRST_LEN 62
80 #define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN
82 extern time_t start_time;
84 int stricmp (const char *s1, const char *s2);
85 int stricmplen (const char *s1, const char *s2, int len);