]> jfr.im git - solanum.git/blob - include/m_info.h
Change default --with-nicklen to 31, like atheme-services.
[solanum.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 * $Id: m_info.h 3356 2007-04-03 09:31:11Z 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 HPATH
56 {"HPATH", HPATH, 0, "Path to Operator Help Files"},
57 #else
58 {"HPATH", "NONE", 0, "Path to Operator Help Files"},
59 #endif /* HPATH */
60
61 #ifdef UHPATH
62 {"UHPATH", UHPATH, 0, "Path to User Help Files"},
63 #else
64 {"UHPATH", "NONE", 0, "Path to User Help Files"},
65 #endif /* UH PATH */
66
67 #ifdef SOMAXCONN
68 {"RATBOX_SOMAXCONN", "", SOMAXCONN,
69 "Maximum Queue Length of Pending Connections"},
70 #else
71 {"RATBOX_SOMAXCONN", "", RATBOX_SOMAXCONN,
72 "Maximum Queue Length of Pending Connections"},
73 #endif /* SOMAXCONN */
74
75 #ifdef RB_IPV6
76 {"IPV6", "ON", 0, "IPv6 Support"},
77 #else
78 {"IPV6", "OFF", 0, "IPv6 Support"},
79 #endif
80
81 {"JOIN_LEAVE_COUNT_EXPIRE_TIME", "", JOIN_LEAVE_COUNT_EXPIRE_TIME,
82 "Anti SpamBot Parameter"},
83
84 {"KILLCHASETIMELIMIT", "", KILLCHASETIMELIMIT,
85 "Nick Change Tracker for KILL"},
86
87 #ifdef LPATH
88 {"LPATH", LPATH, 0, "Path to Log File"},
89 #else
90 {"LPATH", "NONE", 0, "Path to Log File"},
91 #endif /* LPATH */
92
93 {"MAX_BUFFER", "", MAX_BUFFER, "Maximum Buffer Connections Allowed"},
94
95 {"MAX_JOIN_LEAVE_COUNT", "", MAX_JOIN_LEAVE_COUNT,
96 "Anti SpamBot Parameter"},
97
98 {"MIN_JOIN_LEAVE_TIME", "", MIN_JOIN_LEAVE_TIME,
99 "Anti SpamBot Parameter"},
100
101 #ifdef MPATH
102 {"MPATH", MPATH, 0, "Path to MOTD File"},
103 #else
104 {"MPATH", "NONE", 0, "Path to MOTD File"},
105 #endif /* MPATH */
106
107 {"NICKNAMEHISTORYLENGTH", "", NICKNAMEHISTORYLENGTH,
108 "Size of WHOWAS Array"},
109
110 #ifdef OPATH
111 {"OPATH", OPATH, 0, "Path to Operator MOTD File"},
112 #else
113 {"OPATH", "NONE", 0, "Path to Operator MOTD File"},
114 #endif /* OPATH */
115
116 {"OPER_SPAM_COUNTDOWN", "", OPER_SPAM_COUNTDOWN,
117 "Anti SpamBot Parameter"},
118
119 #ifdef HAVE_LIBCRYPTO
120 {"HAVE_LIBCRYPTO", "ON", 0, "Enable OpenSSL CHALLENGE Support"},
121 #else
122 {"HAVE_LIBCRYPTO", "OFF", 0, "Enable OpenSSL CHALLENGE Support"},
123 #endif /* HAVE_LIBCRYPTO */
124
125 #ifdef HAVE_LIBZ
126 {"HAVE_LIBZ", "YES", 0, "zlib (ziplinks) support"},
127 #else
128 {"HAVE_LIBZ", "NO", 0, "zlib (ziplinks) support"},
129 #endif /* HAVE_LIBZ */
130
131 #ifdef PPATH
132 {"PPATH", PPATH, 0, "Path to Pid File"},
133 #else
134 {"PPATH", "NONE", 0, "Path to Pid File"},
135 #endif /* PPATH */
136
137 {"SELECT_TYPE", SELECT_TYPE, 0, "Method of Multiplexed I/O"},
138
139 #ifdef SPATH
140 {"SPATH", SPATH, 0, "Path to Server Executable"},
141 #else
142 {"SPATH", "NONE", 0, "Path to Server Executable"},
143 #endif /* SPATH */
144
145 {"TS_MAX_DELTA_DEFAULT", "", TS_MAX_DELTA_DEFAULT,
146 "Maximum Allowed TS Delta from another Server"},
147 {"TS_WARN_DELTA_DEFAULT", "", TS_WARN_DELTA_DEFAULT,
148 "Maximum TS Delta before Sending Warning"},
149 #ifdef USE_IODEBUG_HOOKS
150 {"USE_IODEBUG_HOOKS", "YES", 0, "IO Debugging support"},
151 #else
152 {"USE_IODEBUG_HOOKS", "NO", 0, "IO Debugging support"},
153 #endif
154
155 /*
156 * since we don't want to include the world here, NULL probably
157 * isn't defined by the time we read this, just use plain 0 instead
158 * 0 is guaranteed by the language to be assignable to ALL built
159 * in types with the correct results.
160 */
161 {0, 0, 0, 0}
162 };
163
164
165 #endif /* INCLUDED_m_info_h */