forked from briancline/undernet-cservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h.dist
319 lines (278 loc) · 8.85 KB
/
config.h.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
/* @(#)CS/config.h.dist $Id: config.h.dist,v 1.16 2000/06/13 05:08:40 lgm Exp $ */
/* Undernet Channel Service (X)
* Copyright (C) 1995-2002 Robin Thellend
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* The author can be contact by email at <[email protected]>
*
* Please note that this software is unsupported and mostly
* obsolete. It was replaced by GNUworld/CMaster. See
* http://gnuworld.sourceforge.net/ for more information.
*/
/* BINDADDR is the local address that all the sockets should be
* bound to.
*/
#define BINDADDR "12.34.56.78"
/* DEFAULT_PORTNUM is the port X will try to
* connect to. This can be overridden by
* DEFAULT_SERVER
*/
#ifdef MAIN
int DEFAULT_PORTNUM = 6667;
#else
extern int DEFAULT_PORTNUM;
#endif
/* DEFAULT_NICKNAME is the nick of the channel service interface
* DEFAULT_USERNAME, its username
* DEFAULT_HOSTNAME, its hostname
* DEFAULT_REALNAME, its realname.
*/
#define DEFAULT_NICKNAME "X"
#define DEFAULT_REALNAME "For help type: \002/msg X help\002"
/* If is very important that all the channel services running
* on the same net use the same user@host :)
*/
#define DEFAULT_USERNAME "cservice"
#define DEFAULT_HOSTNAME "undernet.org"
#ifdef MAIN
char UMODE[10] = "+kid";
#else
extern char UMODE[10];
#endif
/* DEFAULT_SERVER is the server X should connect to.
* It can be either "server" or "server:port"
*/
#define DEFAULT_SERVER "localhost"
/* SERVERNAME and SERVERINFO are for
* X's servername.
* PASSWORD is the password sent before the SERVER command.
*/
#ifdef MAIN
char SERVERNAME[80] = "channels.undernet.org";
char SERVERINFO[80] = "Channel Service";
char PASSWORD[80] = "pizza";
#else
extern char SERVERNAME[80];
extern char SERVERINFO[80];
extern char PASSWORD[80];
#endif
/* HOMEDIR is X's home directory.
* A chdir() is issued at the very beginning of
* the execution.
*/
#ifdef MAIN
char HOMEDIR[256] = "/home/seks/CS";
#else
extern char HOMEDIR[256];
#endif
/*#define HOMEDIR "/usr/home/adm/undernet/CS"*/
/*#define HOMEDIR "/usr/ircd/q/CS"*/
/*#define HOMEDIR "/home/intru/CS"*/
/* UMASK is the umask used when creating new files
*/
#ifdef MAIN
int UMASK = 0077;
#else
extern int UMASK;
#endif
/* USERFILE is where user lists are stored.
*/
#define USERFILE "userlist.dat"
/* DEFAULT_CHANNELS_FILE is the file containing the
* list of channel that should be joined by default.
* In other words, those that have been addchan'ed :)
*/
#define DEFAULT_CHANNELS_FILE "channellist.dat"
/* SHITLIST_FILE is the file where bans are stored
*/
#define SHITLIST_FILE "shitlist.dat"
/* EXEC_FILE is the name of the executable for the restart function
* (added by Kev)
*/
#ifdef MAIN
char EXEC_FILE[256] = "./cs";
#else
extern char EXEC_FILE[256];
#endif
/* Other useful files..
*/
#ifdef MAIN
char MOTD_FILE[256] = "cs.motd";
char LOGFILE[256] = "cs.log";
char LOGFILEBAK[256] = "cs.log.old";
#undef CHANNEL_LOG
#define CHANNEL_LOG_FREQ 3600
char PIDFILE[256] = "cs.pid";
char HELP_DIR[256] = "XHELP"; /* must be non-empty */
#else
extern char MOTD_FILE[256];
extern char LOGFILE[256];
extern char LOGFILEBAK[256];
extern char PIDFILE[256];
extern char HELP_DIR[256];
#endif
/* Information on the main administrator
*/
#ifdef MAIN
char MASTER_REALNAME[80] = "SeKs";
char MASTER_PASSWD[20] = "XXXXXXXXXX";
char MASTER_MATCH[80] = "*!*seks@*.*";
#else
extern char MASTER_REALNAME[80];
extern char MASTER_PASSWD[20];
extern char MASTER_MATCH[80];
#endif
#define MASTER_ACCESS 1000
#define MASTER_CHANNEL "*"
#define MASTER_FLAGS 0
/* Other stuff...
*/
#define PING_FREQ 120 /* seconds */
#define USERLIST_SAVE_FREQ 7200 /* seconds */
#define SHITLIST_SAVE_FREQ 7200 /* seconds */
#define DEFS_SAVE_FREQ 7200 /* seconds */
#define SYNC_FREQ 7200 /* seconds */
#define MODE_DELAY 2 /* seconds */
#ifdef MAIN
char BROADCAST_CHANNEL[80] = "#cservice_info";
char VERIFY_ID[256] = "CSERVICE";
#else
extern char BROADCAST_CHANNEL[80];
extern char VERIFY_ID[256];
#endif
#ifdef MAIN
char UWORLD[10] = "Uworld";
char UWORLD_HOST[80] = "*.nssl.uoknor.edu";
char UWORLD_SERVER[80] = "Uworld.undernet.org";
#else
extern char UWORLD[10];
extern char UWORLD_HOST[80];
extern char UWORLD_SERVER[80];
#endif
#define UWORLD2 UWORLD2_NICK
#ifdef UWORLD2
#ifdef MAIN
char UWORLD2_NICK[10] = "Uworld2";
char UWORLD2_HOST[80] = "undernet.org";
char UWORLD2_SERVER[80] = "Uworld2.undernet.org";
#else
extern char UWORLD2_NICK[10];
extern char UWORLD2_HOST[80];
extern char UWORLD2_SERVER[80];
#endif
#endif
#ifdef BACKUP
# define MAIN_NICK DEFAULT_NICKNAME
# define MAIN_REALNAME ":X's backup: ^B/msg Q motd^B"
# undef DEFAULT_NICKNAME
# undef DEFAULT_REALNAME
# define DEFAULT_NICKNAME "Q"
# define DEFAULT_REALNAME ":X's backup: ^B/msg Q help^B"
# define MAIN_SERVERNAME SERVERNAME
# undef SERVERNAME
# undef SERVERINFO
# define SERVERNAME "channels2.undernet.org"
# define SERVERINFO "Channel Service Backup"
#endif
#define UWORLD_COMMAND "reop %s"
#define FAKE_UWORLD
#ifdef FAKE_UWORLD
# define UFAKE_NICK UWORLD2
# define UFAKE_HOST DEFAULT_HOSTNAME
# define UFAKE_SERVER UWORLD2_SERVER
# define UFAKE_INFO "Uworld"
#endif
#define GETOPS_FREQ 600 /* seconds */
#define GETOPS_ONJOIN_DELAY 30 /* seconds */
#define MAX_IDLE_TIME (48*3600) /* seconds */
#define CHECK_IDLE_FREQ (3 *3600) /* seconds */
#define USERLIST_EXP_TIME (90*24*3600) /* seconds (90 days) */
#define RENAME_LOGFILE_FREQ (3*24*3600) /* seconds (3 days) */
#ifdef MAIN
char CALMDOWNTOPIC[512] =
"This channel is in NoOp mode because of repeated abuse. Please contact "
"the channel manager to have this fixed. For more info, mail "
#else
extern char CALMDOWNTOPIC[512];
#endif
/* Define this if you want the 'upgrade' command
*/
#undef UPGRADE
#ifdef UPGRADE
#define PATCH_SERVER "apache.wildstar.net:7358"
#define GETPATCHPASS "TEST"
#define RECPATCHPASS "BLAH"
#define MISC_TIMEOUT 60
#define PATCH "/usr/bin/patch"
#define MAKE "/usr/bin/make"
#endif
#define MAX_CONNECTIONS 50
#define MAX_SENDQ 300000
#define HIGHSENDQTHRESHOLD 10000
/* Max Ban Duration in days.
*/
#define MAX_BAN_DURATION 14
/* Define this if you want the built-in http server
*/
#undef DOHTTP
#ifdef DOHTTP
#define HTTP_PORT 7357
#define HTTP_TIMEOUT 60
#define HTTP_LOG "http.log"
#define HTTP_DENY "http.deny"
#define HTTP_REDIRECT "http://cservice.undernet.org/"
#define HTTP_FOOTER "\n"\
"<A HREF=\"http://cservice.undernet.org/\"><IMG SRC=\"/files/b_arrow.gif\">Back to main page</A><P>\n"\
"This page is automatically generated by the Undernet Channel Service.\n"\
"If you are experiencing any problem, please contact the \n"\
"<A HREF=\"mailto:[email protected]\">Undernet Channel Service \n"\
"Committee.</A><P>\n"\
"This service is maintained by: <br>\n"\
"<ADDRESS>Robin Thellend <EM>(SeKs@IRC)</EM> <\n"\
"<A HREF=\"mailto:[email protected]\">[email protected]</A>\n"\
"></ADDRESS>\n"
#define HTTP_HEADER "<HEAD><TITLE>Undernet Channel Service: %s</TITLE></HEAD>\n"
#define HTTP_BODY "<BODY BGCOLOR=#000000 TEXT=#FFFFFF LINK=#FF0000 VLINK=#FF00FF>\n"
#define HTTP_BAN_DISCLAIMER "<EM>Disclaimer: The Undernet Channel Service\n" \
"Committee and the maintainer of this service in no way\n" \
"support/endorse actions of channel operators, or regulate\n" \
"channel content in any way. Channel bans shown in no way\n" \
"reflect the views of the Channel Service Committee, and belong\n" \
"solely to the indvidual making them. No editorial control is\n" \
"excised by the committee on either the channel or the webpage.\n" \
"</EM><P>\n"
#define check_referer(x) (strncasecmp((x),"http://cservice.undernet.org/",28) \
&& strncasecmp((x),"http://www.cservice.undernet.org/",28) \
&& strncasecmp((x),"http://cservice.wildstar.net/",28))
#ifdef check_referer
#define HTTP_BAD_REFERER "http://cservice.undernet.org/bad_referer.html"
#endif
#endif
#undef NICKSERV
#ifdef NICKSERV
#ifdef MAIN
char NSERV_NICK[10] = "NickServ";
char NSERV_USER[10] = "nickserv";
char NSERV_HOST[80] = "undernet.org";
char NSERV_INFO[200] = "Nickname registration service";
#else
extern char NSERV_NICK[10];
extern char NSERV_USER[10];
extern char NSERV_HOST[80];
extern char NSERV_INFO[200];
#endif
#endif