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