]> jfr.im git - solanum.git/blame - include/m_info.h
authd: It Works, Bitches™
[solanum.git] / include / m_info.h
CommitLineData
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
212380e3
AC
23 */
24
25#ifndef INCLUDED_m_info_h
26#define INCLUDED_m_info_h
27
9b8e9eb3 28#include "defaults.h"
212380e3
AC
29
30typedef struct Information
31{
32 const char *name; /* name of item */
33 const char *strvalue; /* value of item if it's a boolean */
34 int intvalue; /* value of item if it's an integer */
35 const char *desc; /* short description of item */
36}
37Info;
38
39Info MyInformation[] = {
40
41#ifdef CPATH
42 {"CPATH", CPATH, 0, "Path to Main Configuration File"},
43#else
44 {"CPATH", "NONE", 0, "Path to Main Configuration File"},
45#endif /* CPATH */
46
47#ifdef DPATH
48 {"DPATH", DPATH, 0, "Directory Containing Configuration Files"},
49#else
50 {"DPATH", "NONE", 0, "Directory Containing Configuration Files"},
51#endif /* DPATH */
52
212380e3
AC
53#ifdef HPATH
54 {"HPATH", HPATH, 0, "Path to Operator Help Files"},
55#else
56 {"HPATH", "NONE", 0, "Path to Operator Help Files"},
57#endif /* HPATH */
58
59#ifdef UHPATH
60 {"UHPATH", UHPATH, 0, "Path to User Help Files"},
61#else
62 {"UHPATH", "NONE", 0, "Path to User Help Files"},
63#endif /* UH PATH */
64
65#ifdef SOMAXCONN
638d2862 66 {"CHARYBDIS_SOMAXCONN", "", SOMAXCONN,
212380e3
AC
67 "Maximum Queue Length of Pending Connections"},
68#else
638d2862 69 {"CHARYBDIS_SOMAXCONN", "", CHARYBDIS_SOMAXCONN,
212380e3
AC
70 "Maximum Queue Length of Pending Connections"},
71#endif /* SOMAXCONN */
72
9ea3ea10 73#ifdef RB_IPV6
212380e3
AC
74 {"IPV6", "ON", 0, "IPv6 Support"},
75#else
76 {"IPV6", "OFF", 0, "IPv6 Support"},
77#endif
78
212380e3
AC
79 {"JOIN_LEAVE_COUNT_EXPIRE_TIME", "", JOIN_LEAVE_COUNT_EXPIRE_TIME,
80 "Anti SpamBot Parameter"},
81
82 {"KILLCHASETIMELIMIT", "", KILLCHASETIMELIMIT,
83 "Nick Change Tracker for KILL"},
84
212380e3
AC
85#ifdef LPATH
86 {"LPATH", LPATH, 0, "Path to Log File"},
87#else
88 {"LPATH", "NONE", 0, "Path to Log File"},
89#endif /* LPATH */
90
91 {"MAX_BUFFER", "", MAX_BUFFER, "Maximum Buffer Connections Allowed"},
92
93 {"MAX_JOIN_LEAVE_COUNT", "", MAX_JOIN_LEAVE_COUNT,
94 "Anti SpamBot Parameter"},
95
96 {"MIN_JOIN_LEAVE_TIME", "", MIN_JOIN_LEAVE_TIME,
97 "Anti SpamBot Parameter"},
98
99#ifdef MPATH
100 {"MPATH", MPATH, 0, "Path to MOTD File"},
101#else
102 {"MPATH", "NONE", 0, "Path to MOTD File"},
103#endif /* MPATH */
104
105 {"NICKNAMEHISTORYLENGTH", "", NICKNAMEHISTORYLENGTH,
106 "Size of WHOWAS Array"},
107
108#ifdef OPATH
109 {"OPATH", OPATH, 0, "Path to Operator MOTD File"},
110#else
111 {"OPATH", "NONE", 0, "Path to Operator MOTD File"},
112#endif /* OPATH */
113
114 {"OPER_SPAM_COUNTDOWN", "", OPER_SPAM_COUNTDOWN,
115 "Anti SpamBot Parameter"},
116
117#ifdef HAVE_LIBCRYPTO
118 {"HAVE_LIBCRYPTO", "ON", 0, "Enable OpenSSL CHALLENGE Support"},
119#else
120 {"HAVE_LIBCRYPTO", "OFF", 0, "Enable OpenSSL CHALLENGE Support"},
121#endif /* HAVE_LIBCRYPTO */
122
123#ifdef HAVE_LIBZ
124 {"HAVE_LIBZ", "YES", 0, "zlib (ziplinks) support"},
125#else
126 {"HAVE_LIBZ", "NO", 0, "zlib (ziplinks) support"},
127#endif /* HAVE_LIBZ */
128
129#ifdef PPATH
130 {"PPATH", PPATH, 0, "Path to Pid File"},
131#else
132 {"PPATH", "NONE", 0, "Path to Pid File"},
133#endif /* PPATH */
134
212380e3
AC
135#ifdef SPATH
136 {"SPATH", SPATH, 0, "Path to Server Executable"},
137#else
138 {"SPATH", "NONE", 0, "Path to Server Executable"},
139#endif /* SPATH */
140
141 {"TS_MAX_DELTA_DEFAULT", "", TS_MAX_DELTA_DEFAULT,
142 "Maximum Allowed TS Delta from another Server"},
143 {"TS_WARN_DELTA_DEFAULT", "", TS_WARN_DELTA_DEFAULT,
144 "Maximum TS Delta before Sending Warning"},
145#ifdef USE_IODEBUG_HOOKS
146 {"USE_IODEBUG_HOOKS", "YES", 0, "IO Debugging support"},
147#else
148 {"USE_IODEBUG_HOOKS", "NO", 0, "IO Debugging support"},
149#endif
150
151 /*
152 * since we don't want to include the world here, NULL probably
153 * isn't defined by the time we read this, just use plain 0 instead
154 * 0 is guaranteed by the language to be assignable to ALL built
155 * in types with the correct results.
156 */
157 {0, 0, 0, 0}
158};
159
160
161#endif /* INCLUDED_m_info_h */