X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=main.h;h=0731781ba68cf00b30ce7228ee26750e14102375;hb=795115bf680185ae01043bd1222b78bfed8c1d87;hp=92861853f784cadb9cd055e488f952f93fe585bc;hpb=3ee30bb2261ff056b7d4a5d27d5ee6714e875ac3;p=NeonServV5.git diff --git a/main.h b/main.h index 9286185..0731781 100644 --- a/main.h +++ b/main.h @@ -1,7 +1,12 @@ #ifndef _main_h #define _main_h +#define NEONSERV_VERSION "5.0.1-dev" + #include "config.h" +#ifndef BOTWAR_ALERT_CHAN +#define BOTWAR_ALERT_CHAN NULL +#endif #include #include @@ -31,6 +36,21 @@ #define UNUSED_ARG(ARG) ARG #endif +#define STRINGIFY_(x) #x +#define STRINGIFY(x) STRINGIFY_(x) + +#if defined(__GNUC__) +#if defined(__GNUC_PATCHLEVEL__) +#define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__) "." STRINGIFY(__GNUC_PATCHLEVEL__) +#else +#define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__) +#endif +#elif defined (__IMAGECRAFT__) +#define COMPILER "ICCAVR" +#else +#define COMPILER "Unknown" +#endif + #define SOCKET_SELECT_TIME 2 #define NICKLEN 30 @@ -44,9 +64,13 @@ #define TRIGGERLEN 50 #define MAXNUMPARAMS 200 /* maximum number of parameters in one line */ #define MAXLANGUAGES 5 +#define MAXMODES 6 +#define INVITE_TIMEOUT 30 +#define BOTWAR_DETECTION_TIME 7 +#define BOTWAR_DETECTION_EVENTS 6 //valid nick chars -#define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^_`" +#define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^-_`" //the first char is a little bit different // 0 1 2 3 4 5 6 // 1234567890123456789012345678901234567890123456789012345678 9012 62 @@ -55,6 +79,8 @@ #define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN +extern time_t start_time; + int stricmp (const char *s1, const char *s2); int stricmplen (const char *s1, const char *s2, int len);