2 * ircd-ratbox: A slightly useful ircd.
3 * m_info.h: A header for the information sent by /info
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2004 ircd-ratbox development team
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
25 #ifndef INCLUDED_m_info_h
26 #define INCLUDED_m_info_h
30 typedef struct Information
32 const char *name
; /* name of item */
33 const char *strvalue
; /* value of item if it's a boolean */
34 int intvalue
; /* value of item if it's an integer */
35 const char *desc
; /* short description of item */
39 Info MyInformation
[] = {
42 {"CPATH", CPATH
, 0, "Path to Main Configuration File"},
44 {"CPATH", "NONE", 0, "Path to Main Configuration File"},
48 {"DPATH", DPATH
, 0, "Directory Containing Configuration Files"},
50 {"DPATH", "NONE", 0, "Directory Containing Configuration Files"},
54 {"HPATH", HPATH
, 0, "Path to Operator Help Files"},
56 {"HPATH", "NONE", 0, "Path to Operator Help Files"},
60 {"UHPATH", UHPATH
, 0, "Path to User Help Files"},
62 {"UHPATH", "NONE", 0, "Path to User Help Files"},
66 {"CHARYBDIS_SOMAXCONN", "", SOMAXCONN
,
67 "Maximum Queue Length of Pending Connections"},
69 {"CHARYBDIS_SOMAXCONN", "", CHARYBDIS_SOMAXCONN
,
70 "Maximum Queue Length of Pending Connections"},
71 #endif /* SOMAXCONN */
73 {"IPV6", "ON", 0, "IPv6 Support"},
75 {"JOIN_LEAVE_COUNT_EXPIRE_TIME", "", JOIN_LEAVE_COUNT_EXPIRE_TIME
,
76 "Anti SpamBot Parameter"},
78 {"KILLCHASETIMELIMIT", "", KILLCHASETIMELIMIT
,
79 "Nick Change Tracker for KILL"},
82 {"LPATH", LPATH
, 0, "Path to Log File"},
84 {"LPATH", "NONE", 0, "Path to Log File"},
87 {"MAX_BUFFER", "", MAX_BUFFER
, "Maximum Buffer Connections Allowed"},
89 {"MAX_JOIN_LEAVE_COUNT", "", MAX_JOIN_LEAVE_COUNT
,
90 "Anti SpamBot Parameter"},
92 {"MIN_JOIN_LEAVE_TIME", "", MIN_JOIN_LEAVE_TIME
,
93 "Anti SpamBot Parameter"},
96 {"MPATH", MPATH
, 0, "Path to MOTD File"},
98 {"MPATH", "NONE", 0, "Path to MOTD File"},
101 {"NICKNAMEHISTORYLENGTH", "", NICKNAMEHISTORYLENGTH
,
102 "Size of WHOWAS Array"},
105 {"OPATH", OPATH
, 0, "Path to Operator MOTD File"},
107 {"OPATH", "NONE", 0, "Path to Operator MOTD File"},
110 {"OPER_SPAM_COUNTDOWN", "", OPER_SPAM_COUNTDOWN
,
111 "Anti SpamBot Parameter"},
113 #ifdef HAVE_LIBCRYPTO
114 {"HAVE_LIBCRYPTO", "ON", 0, "Enable OpenSSL CHALLENGE Support"},
116 {"HAVE_LIBCRYPTO", "OFF", 0, "Enable OpenSSL CHALLENGE Support"},
117 #endif /* HAVE_LIBCRYPTO */
120 {"HAVE_LIBZ", "YES", 0, "zlib (ziplinks) support"},
122 {"HAVE_LIBZ", "NO", 0, "zlib (ziplinks) support"},
123 #endif /* HAVE_LIBZ */
126 {"PPATH", PPATH
, 0, "Path to Pid File"},
128 {"PPATH", "NONE", 0, "Path to Pid File"},
132 {"SPATH", SPATH
, 0, "Path to Server Executable"},
134 {"SPATH", "NONE", 0, "Path to Server Executable"},
137 {"TS_MAX_DELTA_DEFAULT", "", TS_MAX_DELTA_DEFAULT
,
138 "Maximum Allowed TS Delta from another Server"},
139 {"TS_WARN_DELTA_DEFAULT", "", TS_WARN_DELTA_DEFAULT
,
140 "Maximum TS Delta before Sending Warning"},
141 #ifdef USE_IODEBUG_HOOKS
142 {"USE_IODEBUG_HOOKS", "YES", 0, "IO Debugging support"},
144 {"USE_IODEBUG_HOOKS", "NO", 0, "IO Debugging support"},
148 * since we don't want to include the world here, NULL probably
149 * isn't defined by the time we read this, just use plain 0 instead
150 * 0 is guaranteed by the language to be assignable to ALL built
151 * in types with the correct results.
157 #endif /* INCLUDED_m_info_h */