]> jfr.im git - irc/rqf/shadowircd.git/blob - include/defaults.h
5edd8b83bbc0bec0a691638790a9145aba0b2319
[irc/rqf/shadowircd.git] / include / defaults.h
1 /*
2 * ircd-ratbox: A slightly useful ircd.
3 * defaults.h: The ircd defaults header.
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: defaults.h 3354 2007-04-03 09:21:31Z nenolod $
25 */
26
27 #ifndef INCLUDED_defaults_h
28 #define INCLUDED_defaults_h
29
30 /* this file is included (only) at the end of config.h, to supply default
31 * values for things which are now configurable at runtime.
32 */
33
34 /*
35 * First, set other fd limits based on values from user
36 */
37
38
39 #define MAXCONNECTIONS 65535 /* default max connections if getrlimit doesn't work */
40 /* class {} default values */
41 #define DEFAULT_SENDQ 20000000 /* default max SendQ */
42 #define PORTNUM 6667 /* default outgoing portnum */
43 #define DEFAULT_PINGFREQUENCY 120 /* Default ping frequency */
44 #define DEFAULT_CONNECTFREQUENCY 600 /* Default connect frequency */
45 #define TS_MAX_DELTA_MIN 10 /* min value for ts_max_delta */
46 #define TS_MAX_DELTA_DEFAULT 600 /* default for ts_max_delta */
47 #define TS_WARN_DELTA_MIN 10 /* min value for ts_warn_delta */
48 #define TS_WARN_DELTA_DEFAULT 30 /* default for ts_warn_delta */
49 /* ServerInfo default values */
50 #define NETWORK_NAME_DEFAULT "EFnet" /* default for network_name */
51 #define NETWORK_DESC_DEFAULT "Eris Free Network" /* default for network_desc */
52 /* General defaults */
53 #define CLIENT_FLOOD_DEFAULT 20 /* default for client_flood */
54 #define CLIENT_FLOOD_MAX 2000
55 #define CLIENT_FLOOD_MIN 10
56 #define LINKS_DELAY_DEFAULT 300
57 #define MAX_TARGETS_DEFAULT 4 /* default for max_targets */
58 #define IDENT_TIMEOUT 10
59 #define MIN_JOIN_LEAVE_TIME 60
60 #define MAX_JOIN_LEAVE_COUNT 25
61 #define OPER_SPAM_COUNTDOWN 5
62 #define JOIN_LEAVE_COUNT_EXPIRE_TIME 120
63 #define MIN_SPAM_NUM 5
64 #define MIN_SPAM_TIME 60
65 #define CONFIG_RATBOX_LEVEL_1
66 #endif /* INCLUDED_defaults_h */