4 #define NEONSERV_VERSION "5.0.1-dev"
6 #include "../mysqlConfig.h"
7 #ifndef BOTWAR_ALERT_CHAN
8 #define BOTWAR_ALERT_CHAN NULL
19 #include <sys/types.h>
20 #include <sys/socket.h>
21 #include <netinet/in.h>
22 #include <arpa/inet.h>
30 #define PRINTF_LIKE(M,N) __attribute__((format (printf, M, N)))
32 #define PRINTF_LIKE(M,N)
36 #define UNUSED_ARG(ARG) ARG __attribute__((unused))
37 #elif defined(S_SPLINT_S)
38 #define UNUSED_ARG(ARG) /*@unused@*/ ARG
39 #define const /*@observer@*/ /*@temp@*/
41 #define UNUSED_ARG(ARG) ARG
44 #define STRINGIFY_(x) #x
45 #define STRINGIFY(x) STRINGIFY_(x)
48 #if defined(__GNUC_PATCHLEVEL__)
49 #define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__) "." STRINGIFY(__GNUC_PATCHLEVEL__)
51 #define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__)
53 #elif defined (__IMAGECRAFT__)
54 #define COMPILER "ICCAVR"
56 #define COMPILER "Unknown"
59 #define SOCKET_SELECT_TIME 2
67 #define CHANNELLEN 200
70 #define MAXNUMPARAMS 200 /* maximum number of parameters in one line */
71 #define MAXLANGUAGES 5
73 #define INVITE_TIMEOUT 30
74 #define BOTWAR_DETECTION_TIME 7
75 #define BOTWAR_DETECTION_EVENTS 6
78 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^-_`"
79 //the first char is a little bit different
81 // 1234567890123456789012345678901234567890123456789012345678 9012 62
82 #define VALID_NICK_CHARS_FIRST "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~[\\]^_`"
83 #define VALID_NICK_CHARS_FIRST_LEN 62
85 #define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN
87 extern time_t start_time;
89 int stricmp (const char *s1, const char *s2);
90 int stricmplen (const char *s1, const char *s2, int len);