]>
jfr.im git - irc/evilnet/mod.chanfix.git/blob - chanfix_config.h
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.
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.
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,
22 #ifndef __CHANFIX_CONFIG_H
23 #define __CHANFIX_CONFIG_H "$Id$"
25 #define CHANFIX_DEBUG 1
26 //#define CHANFIX_EXTENDED_ACCOUNTS 1
27 //#define CHANFIX_INGORE_SERVICES 1
30 * Defines that deal with fixing channels, both manually and
31 * automatically. All the below times are in seconds.
35 * The time between consecutive attempts to fix an opless channel
37 #define AUTOFIX_INTERVAL 600
40 * The maximum time to try to fix an opless channel
42 #define AUTOFIX_MAXIMUM 3600
45 * The max number of clients opped by chanfix during an autofix.
47 #define AUTOFIX_NUM_OPPED 5
50 * The time to wait between the removal of modes and the first
51 * attempt to give ops to people.
53 #define CHANFIX_DELAY 30
56 * The time between consecutive attempts to manually fix a channel
58 #define CHANFIX_INTERVAL 300
61 * The maximum time to try to manually fix a channel
63 #define CHANFIX_MAXIMUM 3600
66 * The max number of clients opped by chanfix during a manual fix.
68 #define CHANFIX_NUM_OPPED 5
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.
80 * Minimum absolute score required for chanfix to op, relative to
81 * the maximum score possible (default: 0.20 * 4032).
83 #define FIX_MIN_ABS_SCORE_BEGIN 0.20
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
90 #define FIX_MIN_REL_SCORE_BEGIN 0.90
93 * Minimum absolute score required for chanfix to op, relative to
94 * the maximum score possible (default: 0.04 * 4032).
96 #define FIX_MIN_ABS_SCORE_END 0.04
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.
103 #define FIX_MIN_REL_SCORE_END 0.30
107 * Other various settings that really should not be changed.
111 * Interval between two consecutive points updates.
113 #define POINTS_UPDATE_TIME 300
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)
120 #define DBROTATE_CHECK_TIME 3600
123 * Interval between two consecutive SQL updates.
124 * Default: every 12 hours
126 #define SQL_UPDATE_TIME 86400
129 * Interval between two consecutive checks for opless channels.
131 #define CHECK_CHANS_TIME 60
134 * Interval between two consecutive processing of the queues.
136 #define PROCESS_QUEUE_TIME 30
139 * Interval between checks for expired tempblocks
141 #define TEMPBLOCKS_CHECK_TIME 30
144 * Duration that temp blocks should last
145 * (Default is 1hr 3600)
147 #define TEMPBLOCK_DURATION_TIME 3600
150 * Maximum score a client can obtain.
152 #define MAX_SCORE (static_cast<int>(DAYSAMPLES) * 86400 / POINTS_UPDATE_TIME)
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.
158 #define DAYSAMPLES 14
161 * The maximum number of top ops to return to the user on
162 * an OPLIST query. (default: 10)
167 * The maximum number of top ops to keep track of per channel.
170 #define MAXOPCOUNT 256
173 * The maximum number of notes allowed per channel.
176 #define MAXNOTECOUNT 50
179 * Do you want to remember (and never expire) old channel entries that
180 * have notes or flags associated with them?
182 #define REMEMBER_CHANNELS_WITH_NOTES_OR_FLAGS
185 * Should the QUOTE command be enabled?
186 * This command allows raw P10 traffic to be sent to the network.
190 #endif // __CHANFIX_CONFIG_H