]> jfr.im git - irc/evilnet/mod.chanfix.git/blob - chanfix_config.h
Fixed missing include, corebug fix was already applied here.
[irc/evilnet/mod.chanfix.git] / chanfix_config.h
1 /**
2 * chanfix_config.h
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 * USA.
18 *
19 * $Id$
20 */
21
22 #ifndef __CHANFIX_CONFIG_H
23 #define __CHANFIX_CONFIG_H "$Id$"
24
25 #define CHANFIX_DEBUG 1
26 //#define CHANFIX_EXTENDED_ACCOUNTS 1
27 //#define CHANFIX_INGORE_SERVICES 1
28
29 /**
30 * Defines that deal with fixing channels, both manually and
31 * automatically. All the below times are in seconds.
32 */
33
34 /**
35 * The time between consecutive attempts to fix an opless channel
36 */
37 #define AUTOFIX_INTERVAL 600
38
39 /**
40 * The maximum time to try to fix an opless channel
41 */
42 #define AUTOFIX_MAXIMUM 3600
43
44 /**
45 * The max number of clients opped by chanfix during an autofix.
46 */
47 #define AUTOFIX_NUM_OPPED 5
48
49 /**
50 * The time to wait between the removal of modes and the first
51 * attempt to give ops to people.
52 */
53 #define CHANFIX_DELAY 30
54
55 /**
56 * The time between consecutive attempts to manually fix a channel
57 */
58 #define CHANFIX_INTERVAL 300
59
60 /**
61 * The maximum time to try to manually fix a channel
62 */
63 #define CHANFIX_MAXIMUM 3600
64
65 /**
66 * The max number of clients opped by chanfix during a manual fix.
67 */
68 #define CHANFIX_NUM_OPPED 5
69
70
71 /**
72 * Score values
73 * The first 2 values are the minimum scores required at the beginning
74 * of a chanfix; the last 2 values are the minimum scores at the very
75 * end of the fix. Between these times, there is a linear decrease from
76 * the high to the low values.
77 */
78
79 /**
80 * Minimum absolute score required for chanfix to op, relative to
81 * the maximum score possible (default: 0.20 * 4032).
82 */
83 #define FIX_MIN_ABS_SCORE_BEGIN 0.20
84
85 /**
86 * Minimum score required for chanfix to op, relative to the maximum
87 * score for this channel in the database, at the beginning of the
88 * fix.
89 */
90 #define FIX_MIN_REL_SCORE_BEGIN 0.90
91
92 /**
93 * Minimum absolute score required for chanfix to op, relative to
94 * the maximum score possible (default: 0.04 * 4032).
95 */
96 #define FIX_MIN_ABS_SCORE_END 0.04
97
98 /**
99 * Minimum score required for chanfix to op, relative to the maximum
100 * score for this channel in the database. So, if you have less than
101 * 30% of the maximum score, chanfix will never op you.
102 */
103 #define FIX_MIN_REL_SCORE_END 0.30
104
105
106 /**
107 * Other various settings that really should not be changed.
108 */
109
110 /**
111 * Interval between two consecutive points updates.
112 */
113 #define POINTS_UPDATE_TIME 300
114
115 /**
116 * Interval between two consecutive checks of the time.
117 * How often should we check to see if its 00 GMT and rotate the DB
118 * (suggested hourly: 3600)
119 */
120 #define DBROTATE_CHECK_TIME 3600
121
122 /**
123 * Interval between two consecutive SQL updates.
124 * Default: every 12 hours
125 */
126 #define SQL_UPDATE_TIME 86400
127
128 /**
129 * Interval between two consecutive checks for opless channels.
130 */
131 #define CHECK_CHANS_TIME 60
132
133 /**
134 * Interval between two consecutive processing of the queues.
135 */
136 #define PROCESS_QUEUE_TIME 30
137
138 /**
139 * Interval between checks for expired tempblocks
140 */
141 #define TEMPBLOCKS_CHECK_TIME 30
142
143 /**
144 * Duration that temp blocks should last
145 * (Default is 1hr 3600)
146 */
147 #define TEMPBLOCK_DURATION_TIME 3600
148
149 /**
150 * Maximum score a client can obtain.
151 */
152 #define MAX_SCORE (static_cast<int>(DAYSAMPLES) * 86400 / POINTS_UPDATE_TIME)
153
154 /**
155 * The maximum number of days to keep track of per channel -1,
156 * e.g. a value of 15 means we track 14.00-14.99 days.
157 */
158 #define DAYSAMPLES 14
159
160 /**
161 * The maximum number of top ops to return to the user on
162 * an OPLIST query. (default: 10)
163 */
164 #define OPCOUNT 10
165
166 /**
167 * The maximum number of top ops to keep track of per channel.
168 * (default: 256)
169 */
170 #define MAXOPCOUNT 256
171
172 /**
173 * The maximum number of notes allowed per channel.
174 * (default: 50)
175 */
176 #define MAXNOTECOUNT 50
177
178 /**
179 * Do you want to remember (and never expire) old channel entries that
180 * have notes or flags associated with them?
181 */
182 #define REMEMBER_CHANNELS_WITH_NOTES_OR_FLAGS
183
184 /**
185 * Should the QUOTE command be enabled?
186 * This command allows raw P10 traffic to be sent to the network.
187 */
188 #undef ENABLE_QUOTE
189
190 #endif // __CHANFIX_CONFIG_H