4 #define NEONSERV_VERSION "5.0.1-dev"
6 #ifndef BOTWAR_ALERT_CHAN
7 #define BOTWAR_ALERT_CHAN NULL
18 #include <sys/types.h>
19 #include <sys/socket.h>
20 #include <netinet/in.h>
21 #include <arpa/inet.h>
29 #define PRINTF_LIKE(M,N) __attribute__((format (printf, M, N)))
31 #define PRINTF_LIKE(M,N)
35 #define UNUSED_ARG(ARG) ARG __attribute__((unused))
36 #elif defined(S_SPLINT_S)
37 #define UNUSED_ARG(ARG) /*@unused@*/ ARG
38 #define const /*@observer@*/ /*@temp@*/
40 #define UNUSED_ARG(ARG) ARG
43 #define STRINGIFY_(x) #x
44 #define STRINGIFY(x) STRINGIFY_(x)
47 #if defined(__GNUC_PATCHLEVEL__)
48 #define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__) "." STRINGIFY(__GNUC_PATCHLEVEL__)
50 #define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__)
52 #elif defined (__IMAGECRAFT__)
53 #define COMPILER "ICCAVR"
55 #define COMPILER "Unknown"
58 #define SOCKET_SELECT_TIME 2
66 #define CHANNELLEN 200
69 #define MAXNUMPARAMS 200 /* maximum number of parameters in one line */
70 #define MAXLANGUAGES 5
72 #define INVITE_TIMEOUT 30
73 #define BOTWAR_DETECTION_TIME 7
74 #define BOTWAR_DETECTION_EVENTS 6
77 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^-_`"
78 //the first char is a little bit different
80 // 1234567890123456789012345678901234567890123456789012345678 9012 62
81 #define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
82 #define VALID_NICK_CHARS_FIRST_LEN 62
84 #define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN
86 extern time_t start_time;
88 int stricmp (const char *s1, const char *s2);
89 int stricmplen (const char *s1, const char *s2, int len);