2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001-2010 Alexander Barton (alex@barton.de).
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 * Please read the file COPYING, README and AUTHORS for more information.
17 * Global variables of ngIRCd.
24 #define C_ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
26 /** UNIX timestamp of ngIRCd start */
27 GLOBAL time_t NGIRCd_Start;
29 /** ngIRCd start time as string, used for RPL_CREATED_MSG (003) */
30 GLOBAL char NGIRCd_StartStr[64];
32 /** ngIRCd version number containing release number and compile-time options */
33 GLOBAL char NGIRCd_Version[126];
35 /** String specifying the compile-time options and target platform */
36 GLOBAL char NGIRCd_VersionAddition[126];
39 /** Flag indicating if debug mode is active (true) or not (false) */
40 GLOBAL bool NGIRCd_Debug;
44 /** Flag indication if sniffer is active (true) or not (false) */
45 GLOBAL bool NGIRCd_Sniffer;
49 * Flag indicating if NO outgoing connections should be established (true)
50 * or not (false, the default)
52 GLOBAL bool NGIRCd_Passive;
54 /** Flag indicating that ngIRCd has been requested to quit (true) */
55 GLOBAL bool NGIRCd_SignalQuit;
57 /** Flag indicating that ngIRCd has been requested to restart (true) */
58 GLOBAL bool NGIRCd_SignalRestart;
61 * Debug level for "VERSION" command, see description of numeric RPL_VERSION
62 * (351) in RFC 2812. ngIRCd sets debuglevel to 1 when the debug mode is
63 * active, and to 2 if the sniffer is running.
65 GLOBAL char NGIRCd_DebugLevel[2];
67 /** Full path and file name of current configuration file */
68 GLOBAL char NGIRCd_ConfFile[FNAME_LEN];
70 /** Protocol and server identification string; see doc/Protocol.txt */
71 GLOBAL char NGIRCd_ProtoID[COMMAND_LEN];