1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
/*
* What we're doing here is defining a unique string that describes what
* compile-time options are in use. The string is then accessible though
* a special builtin function. The point is to allow script writers to
* know what has been enabled/disabled so they don't try to use a
* feature that in't available. As such, only #define's that really
* affect scripting or direct user interaction are included in the
* string. Each option is assigned a unique letter, all of which are
* concatenated together to form a strig that looks like an irc server's
* version string. Some of the options are assigned to non-obvious letters
* since the string has to be case insensitive.
*/
/* Letters left: ajly */
char compile_time_options[] = {
#ifdef COMPAT_27
'2',
#endif /* COMPAT_27 */
#ifdef WIND_STACK
'a',
#endif /* WIND_STACK */
#ifdef NO_BOTS
'b',
#endif /* NO_BOTS */
#ifdef DEBUG
'd',
#endif /* DEBUG */
#ifdef EXEC_COMMAND
'e',
#endif /* EXEC_COMMAND */
#ifdef USE_FLOW_CONTROL
'f',
#endif /* USE_FLOW_CONTROL */
#ifdef INCLUDE_GLOB_FUNCTION
'g',
#endif /* INCLUDE_GLOB_FUNCTION */
#ifdef HOP
'h',
#endif /* HOP */
#ifdef MIRC_BROKEN_DCC_RESUME
'i',
#endif /* MIRC_BROKEN_DCC_RESUME */
#ifdef HACKED_DCC_WARNING
'k',
#endif /* HACKED_DCC_WARNING */
#ifdef MURPLE
'm',
#endif /* MURPLE */
#ifdef ALLOW_LONG_NICKNAMES
'n',
#endif /* ALLOW_LONG_NICKNAMES */
#ifdef ENFORCE_STRICTER_PROTOCOL
'o',
#endif /* ENFORCE_STRICTER_PROTOCOL */
#ifdef PHONE
'p',
#endif /* PHONE */
#ifdef QUIT_ON_OPERATOR_KILL
'q',
#endif /* QUIT_ON_OPERATOR_KILL */
#ifdef RESTRICTED
'r',
#endif /* RESTRICTED */
#ifdef STRIP_EXTRANEOUS_SPACES
's',
#endif /* STRIP_EXTRANEOUS_SPACES */
#ifdef I_DONT_TRUST_MY_USERS
't',
#endif /* I_DONT_TRUST_MY_USERS */
#ifdef UNAME_HACK
'u',
#endif /* UNAME_HACK */
#ifdef USE_DCC_CHECKSUM
'v',
#endif /* USE_DCC_CHECKSUM */
#ifdef WINTRHAWK
'w',
#endif /* WINTRHAWK */
#ifdef EXPERIMENTAL_STACK_HACK
'x',
#endif /* EXPERIMENTAL_STACK_HACK */
#ifdef ALLOW_STOP_IRC
'z',
#endif /* ALLOW_STOP_IRC */
'\0'
};
|