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
26 #ifndef INCLUDED_m_info_h
27 #define INCLUDED_m_info_h
31 typedef struct Information
33 const char *name
; /* name of item */
34 const char *strvalue
; /* value of item if it's a boolean */
35 int intvalue
; /* value of item if it's an integer */
36 const char *desc
; /* short description of item */
40 Info MyInformation
[] = {
43 {"CPATH", CPATH
, 0, "Path to Main Configuration File"},
45 {"CPATH", "NONE", 0, "Path to Main Configuration File"},
49 {"DPATH", DPATH
, 0, "Directory Containing Configuration Files"},
51 {"DPATH", "NONE", 0, "Directory Containing Configuration Files"},
55 {"HPATH", HPATH
, 0, "Path to Operator Help Files"},
57 {"HPATH", "NONE", 0, "Path to Operator Help Files"},
61 {"UHPATH", UHPATH
, 0, "Path to User Help Files"},
63 {"UHPATH", "NONE", 0, "Path to User Help Files"},
67 {"RATBOX_SOMAXCONN", "", SOMAXCONN
,
68 "Maximum Queue Length of Pending Connections"},
70 {"RATBOX_SOMAXCONN", "", RATBOX_SOMAXCONN
,
71 "Maximum Queue Length of Pending Connections"},
72 #endif /* SOMAXCONN */
75 {"IPV6", "ON", 0, "IPv6 Support"},
77 {"IPV6", "OFF", 0, "IPv6 Support"},
80 {"JOIN_LEAVE_COUNT_EXPIRE_TIME", "", JOIN_LEAVE_COUNT_EXPIRE_TIME
,
81 "Anti SpamBot Parameter"},
83 {"KILLCHASETIMELIMIT", "", KILLCHASETIMELIMIT
,
84 "Nick Change Tracker for KILL"},
87 {"LPATH", LPATH
, 0, "Path to Log File"},
89 {"LPATH", "NONE", 0, "Path to Log File"},
92 {"MAX_BUFFER", "", MAX_BUFFER
, "Maximum Buffer Connections Allowed"},
94 {"MAX_JOIN_LEAVE_COUNT", "", MAX_JOIN_LEAVE_COUNT
,
95 "Anti SpamBot Parameter"},
97 {"MIN_JOIN_LEAVE_TIME", "", MIN_JOIN_LEAVE_TIME
,
98 "Anti SpamBot Parameter"},
101 {"MPATH", MPATH
, 0, "Path to MOTD File"},
103 {"MPATH", "NONE", 0, "Path to MOTD File"},
106 {"NICKNAMEHISTORYLENGTH", "", NICKNAMEHISTORYLENGTH
,
107 "Size of WHOWAS Array"},
110 {"OPATH", OPATH
, 0, "Path to Operator MOTD File"},
112 {"OPATH", "NONE", 0, "Path to Operator MOTD File"},
115 {"OPER_SPAM_COUNTDOWN", "", OPER_SPAM_COUNTDOWN
,
116 "Anti SpamBot Parameter"},
118 #ifdef HAVE_LIBCRYPTO
119 {"HAVE_LIBCRYPTO", "ON", 0, "Enable OpenSSL CHALLENGE Support"},
121 {"HAVE_LIBCRYPTO", "OFF", 0, "Enable OpenSSL CHALLENGE Support"},
122 #endif /* HAVE_LIBCRYPTO */
125 {"HAVE_LIBZ", "YES", 0, "zlib (ziplinks) support"},
127 {"HAVE_LIBZ", "NO", 0, "zlib (ziplinks) support"},
128 #endif /* HAVE_LIBZ */
131 {"PPATH", PPATH
, 0, "Path to Pid File"},
133 {"PPATH", "NONE", 0, "Path to Pid File"},
136 {"SELECT_TYPE", SELECT_TYPE
, 0, "Method of Multiplexed I/O"},
139 {"SPATH", SPATH
, 0, "Path to Server Executable"},
141 {"SPATH", "NONE", 0, "Path to Server Executable"},
144 {"TS_MAX_DELTA_DEFAULT", "", TS_MAX_DELTA_DEFAULT
,
145 "Maximum Allowed TS Delta from another Server"},
146 {"TS_WARN_DELTA_DEFAULT", "", TS_WARN_DELTA_DEFAULT
,
147 "Maximum TS Delta before Sending Warning"},
148 #ifdef USE_IODEBUG_HOOKS
149 {"USE_IODEBUG_HOOKS", "YES", 0, "IO Debugging support"},
151 {"USE_IODEBUG_HOOKS", "NO", 0, "IO Debugging support"},
155 * since we don't want to include the world here, NULL probably
156 * isn't defined by the time we read this, just use plain 0 instead
157 * 0 is guaranteed by the language to be assignable to ALL built
158 * in types with the correct results.
164 #endif /* INCLUDED_m_info_h */