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];
38 /** Flag indicating if debug mode is active (true) or not (false) */
39 GLOBAL bool NGIRCd_Debug;
42 /** Flag indication if sniffer is active (true) or not (false) */
43 GLOBAL bool NGIRCd_Sniffer;
47 * Flag indicating if NO outgoing connections should be established (true)
48 * or not (false, the default)
50 GLOBAL bool NGIRCd_Passive;
52 /** Flag indicating that ngIRCd has been requested to quit (true) */
53 GLOBAL bool NGIRCd_SignalQuit;
55 /** Flag indicating that ngIRCd has been requested to restart (true) */
56 GLOBAL bool NGIRCd_SignalRestart;
59 * Debug level for "VERSION" command, see description of numeric RPL_VERSION
60 * (351) in RFC 2812. ngIRCd sets debuglevel to 1 when the debug mode is
61 * active, and to 2 if the sniffer is running.
63 GLOBAL char NGIRCd_DebugLevel[2];
65 /** Full path and file name of current configuration file */
66 GLOBAL char NGIRCd_ConfFile[FNAME_LEN];
68 /** Protocol and server identification string; see doc/Protocol.txt */
69 GLOBAL char NGIRCd_ProtoID[COMMAND_LEN];