]> jfr.im git - irc/rqf/shadowircd.git/blob - include/m_info.h
8e32da42dc4d43bf6a5f8cd2ae3580f048004e29
[irc/rqf/shadowircd.git] / include / m_info.h
1 /*
2 * ircd-ratbox: A slightly useful ircd.
3 * m_info.h: A header for the information sent by /info
4 *
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
8 *
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.
13 *
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.
18 *
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
22 * USA
23 *
24 */
25
26 #ifndef INCLUDED_m_info_h
27 #define INCLUDED_m_info_h
28
29 #include "config.h"
30
31 typedef struct Information
32 {
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 */
37 }
38 Info;
39
40 Info MyInformation[] = {
41
42 #ifdef CPATH
43 {"CPATH", CPATH, 0, "Path to Main Configuration File"},
44 #else
45 {"CPATH", "NONE", 0, "Path to Main Configuration File"},
46 #endif /* CPATH */
47
48 #ifdef DPATH
49 {"DPATH", DPATH, 0, "Directory Containing Configuration Files"},
50 #else
51 {"DPATH", "NONE", 0, "Directory Containing Configuration Files"},
52 #endif /* DPATH */
53
54 #ifdef DLPATH
55 {"DLPATH", DLPATH, 0, "Path to D-line File"},
56 #else
57 {"DLPATH", "NONE", 0, "Path to D-line File"},
58 #endif /* DLPATH */
59
60 #ifdef RESVPATH
61 {"RESVPATH", RESVPATH, 0, "Path to resv file"},
62 #else
63 {"RESVPATH", "NONE", 0, "Path to resv file"},
64 #endif
65
66 #ifdef HPATH
67 {"HPATH", HPATH, 0, "Path to Operator Help Files"},
68 #else
69 {"HPATH", "NONE", 0, "Path to Operator Help Files"},
70 #endif /* HPATH */
71
72 #ifdef UHPATH
73 {"UHPATH", UHPATH, 0, "Path to User Help Files"},
74 #else
75 {"UHPATH", "NONE", 0, "Path to User Help Files"},
76 #endif /* UH PATH */
77
78 #ifdef SOMAXCONN
79 {"RATBOX_SOMAXCONN", "", SOMAXCONN,
80 "Maximum Queue Length of Pending Connections"},
81 #else
82 {"RATBOX_SOMAXCONN", "", RATBOX_SOMAXCONN,
83 "Maximum Queue Length of Pending Connections"},
84 #endif /* SOMAXCONN */
85
86 #ifdef RB_IPV6
87 {"IPV6", "ON", 0, "IPv6 Support"},
88 #else
89 {"IPV6", "OFF", 0, "IPv6 Support"},
90 #endif
91
92 {"JOIN_LEAVE_COUNT_EXPIRE_TIME", "", JOIN_LEAVE_COUNT_EXPIRE_TIME,
93 "Anti SpamBot Parameter"},
94
95 {"KILLCHASETIMELIMIT", "", KILLCHASETIMELIMIT,
96 "Nick Change Tracker for KILL"},
97
98 #ifdef KPATH
99 {"KPATH", KPATH, 0, "Path to K-line File"},
100 #else
101 {"KPATH", "NONE", 0, "Path to K-line File"},
102 #endif /* KPATH */
103
104 #ifdef LPATH
105 {"LPATH", LPATH, 0, "Path to Log File"},
106 #else
107 {"LPATH", "NONE", 0, "Path to Log File"},
108 #endif /* LPATH */
109
110 {"MAX_BUFFER", "", MAX_BUFFER, "Maximum Buffer Connections Allowed"},
111
112 {"MAX_JOIN_LEAVE_COUNT", "", MAX_JOIN_LEAVE_COUNT,
113 "Anti SpamBot Parameter"},
114
115 {"MIN_JOIN_LEAVE_TIME", "", MIN_JOIN_LEAVE_TIME,
116 "Anti SpamBot Parameter"},
117
118 #ifdef MPATH
119 {"MPATH", MPATH, 0, "Path to MOTD File"},
120 #else
121 {"MPATH", "NONE", 0, "Path to MOTD File"},
122 #endif /* MPATH */
123
124 {"NICKNAMEHISTORYLENGTH", "", NICKNAMEHISTORYLENGTH,
125 "Size of WHOWAS Array"},
126
127 #ifdef OPATH
128 {"OPATH", OPATH, 0, "Path to Operator MOTD File"},
129 #else
130 {"OPATH", "NONE", 0, "Path to Operator MOTD File"},
131 #endif /* OPATH */
132
133 {"OPER_SPAM_COUNTDOWN", "", OPER_SPAM_COUNTDOWN,
134 "Anti SpamBot Parameter"},
135
136 #ifdef HAVE_LIBCRYPTO
137 {"HAVE_LIBCRYPTO", "ON", 0, "Enable OpenSSL CHALLENGE Support"},
138 #else
139 {"HAVE_LIBCRYPTO", "OFF", 0, "Enable OpenSSL CHALLENGE Support"},
140 #endif /* HAVE_LIBCRYPTO */
141
142 #ifdef HAVE_LIBZ
143 {"HAVE_LIBZ", "YES", 0, "zlib (ziplinks) support"},
144 #else
145 {"HAVE_LIBZ", "NO", 0, "zlib (ziplinks) support"},
146 #endif /* HAVE_LIBZ */
147
148 #ifdef PPATH
149 {"PPATH", PPATH, 0, "Path to Pid File"},
150 #else
151 {"PPATH", "NONE", 0, "Path to Pid File"},
152 #endif /* PPATH */
153
154 {"SELECT_TYPE", SELECT_TYPE, 0, "Method of Multiplexed I/O"},
155
156 #ifdef SPATH
157 {"SPATH", SPATH, 0, "Path to Server Executable"},
158 #else
159 {"SPATH", "NONE", 0, "Path to Server Executable"},
160 #endif /* SPATH */
161
162 {"TS_MAX_DELTA_DEFAULT", "", TS_MAX_DELTA_DEFAULT,
163 "Maximum Allowed TS Delta from another Server"},
164 {"TS_WARN_DELTA_DEFAULT", "", TS_WARN_DELTA_DEFAULT,
165 "Maximum TS Delta before Sending Warning"},
166 #ifdef USE_IODEBUG_HOOKS
167 {"USE_IODEBUG_HOOKS", "YES", 0, "IO Debugging support"},
168 #else
169 {"USE_IODEBUG_HOOKS", "NO", 0, "IO Debugging support"},
170 #endif
171
172 /*
173 * since we don't want to include the world here, NULL probably
174 * isn't defined by the time we read this, just use plain 0 instead
175 * 0 is guaranteed by the language to be assignable to ALL built
176 * in types with the correct results.
177 */
178 {0, 0, 0, 0}
179 };
180
181
182 #endif /* INCLUDED_m_info_h */