]> jfr.im git - irc/rqf/shadowircd.git/blame - include/m_info.h
Remove all the DEFINE's and the random places they were used for the .conf-based...
[irc/rqf/shadowircd.git] / include / m_info.h
CommitLineData
212380e3 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 *
212380e3 24 */
25
26#ifndef INCLUDED_m_info_h
27#define INCLUDED_m_info_h
28
29#include "config.h"
30
31typedef 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}
38Info;
39
40Info 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
212380e3 54#ifdef HPATH
55 {"HPATH", HPATH, 0, "Path to Operator Help Files"},
56#else
57 {"HPATH", "NONE", 0, "Path to Operator Help Files"},
58#endif /* HPATH */
59
60#ifdef UHPATH
61 {"UHPATH", UHPATH, 0, "Path to User Help Files"},
62#else
63 {"UHPATH", "NONE", 0, "Path to User Help Files"},
64#endif /* UH PATH */
65
66#ifdef SOMAXCONN
67 {"RATBOX_SOMAXCONN", "", SOMAXCONN,
68 "Maximum Queue Length of Pending Connections"},
69#else
70 {"RATBOX_SOMAXCONN", "", RATBOX_SOMAXCONN,
71 "Maximum Queue Length of Pending Connections"},
72#endif /* SOMAXCONN */
73
2f5fa921 74#ifdef RB_IPV6
212380e3 75 {"IPV6", "ON", 0, "IPv6 Support"},
76#else
77 {"IPV6", "OFF", 0, "IPv6 Support"},
78#endif
79
212380e3 80 {"JOIN_LEAVE_COUNT_EXPIRE_TIME", "", JOIN_LEAVE_COUNT_EXPIRE_TIME,
81 "Anti SpamBot Parameter"},
82
83 {"KILLCHASETIMELIMIT", "", KILLCHASETIMELIMIT,
84 "Nick Change Tracker for KILL"},
85
212380e3 86#ifdef LPATH
87 {"LPATH", LPATH, 0, "Path to Log File"},
88#else
89 {"LPATH", "NONE", 0, "Path to Log File"},
90#endif /* LPATH */
91
92 {"MAX_BUFFER", "", MAX_BUFFER, "Maximum Buffer Connections Allowed"},
93
94 {"MAX_JOIN_LEAVE_COUNT", "", MAX_JOIN_LEAVE_COUNT,
95 "Anti SpamBot Parameter"},
96
97 {"MIN_JOIN_LEAVE_TIME", "", MIN_JOIN_LEAVE_TIME,
98 "Anti SpamBot Parameter"},
99
100#ifdef MPATH
101 {"MPATH", MPATH, 0, "Path to MOTD File"},
102#else
103 {"MPATH", "NONE", 0, "Path to MOTD File"},
104#endif /* MPATH */
105
106 {"NICKNAMEHISTORYLENGTH", "", NICKNAMEHISTORYLENGTH,
107 "Size of WHOWAS Array"},
108
109#ifdef OPATH
110 {"OPATH", OPATH, 0, "Path to Operator MOTD File"},
111#else
112 {"OPATH", "NONE", 0, "Path to Operator MOTD File"},
113#endif /* OPATH */
114
115 {"OPER_SPAM_COUNTDOWN", "", OPER_SPAM_COUNTDOWN,
116 "Anti SpamBot Parameter"},
117
118#ifdef HAVE_LIBCRYPTO
119 {"HAVE_LIBCRYPTO", "ON", 0, "Enable OpenSSL CHALLENGE Support"},
120#else
121 {"HAVE_LIBCRYPTO", "OFF", 0, "Enable OpenSSL CHALLENGE Support"},
122#endif /* HAVE_LIBCRYPTO */
123
124#ifdef HAVE_LIBZ
125 {"HAVE_LIBZ", "YES", 0, "zlib (ziplinks) support"},
126#else
127 {"HAVE_LIBZ", "NO", 0, "zlib (ziplinks) support"},
128#endif /* HAVE_LIBZ */
129
130#ifdef PPATH
131 {"PPATH", PPATH, 0, "Path to Pid File"},
132#else
133 {"PPATH", "NONE", 0, "Path to Pid File"},
134#endif /* PPATH */
135
136 {"SELECT_TYPE", SELECT_TYPE, 0, "Method of Multiplexed I/O"},
137
138#ifdef SPATH
139 {"SPATH", SPATH, 0, "Path to Server Executable"},
140#else
141 {"SPATH", "NONE", 0, "Path to Server Executable"},
142#endif /* SPATH */
143
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"},
150#else
151 {"USE_IODEBUG_HOOKS", "NO", 0, "IO Debugging support"},
152#endif
153
154 /*
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.
159 */
160 {0, 0, 0, 0}
161};
162
163
164#endif /* INCLUDED_m_info_h */