mirror of
https://github.com/anope/anope.git
synced 2026-07-02 00:46:38 +02:00
Added timeoutcheck directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1715 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -319,6 +319,28 @@ options {
|
||||
* WALLOPS/GLOBOPS.
|
||||
*/
|
||||
warningtimeout = 4h
|
||||
|
||||
/*
|
||||
* Sets the (maximum) frequency at which the timeout list is checked. This,
|
||||
* combined with readtimeout above, determine how accurately timed events,
|
||||
* such as nick kills, occur; it also determines how much CPU time Services
|
||||
* will use doing this. Higher values will cause less accurate timing but
|
||||
* less CPU usage.
|
||||
*
|
||||
* This shouldn't be set any higher than 10 seconds, and 1 second is best
|
||||
* if your system is powerful enough (or your network small enough) to
|
||||
* handle it. 0 will cause the timeout list to be checked every time
|
||||
* through the main loop, which will probably slow down Services too much
|
||||
* to be useful on most networks.
|
||||
*
|
||||
* Note that this value is not an absolute limit on the period between
|
||||
* checks of the timeout list; the previous may be as great as readtimeout
|
||||
* (above) during periods of inactivity.
|
||||
*
|
||||
* If this directive is not given, it will default to 0. See the 2nd paragraph
|
||||
* above for performance impacts if you do this.
|
||||
*/
|
||||
timeoutcheck = 3s
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -291,7 +291,7 @@ E time_t UpdateTimeout;
|
||||
E time_t ExpireTimeout;
|
||||
E time_t ReadTimeout;
|
||||
E time_t WarningTimeout;
|
||||
E int TimeoutCheck;
|
||||
E time_t TimeoutCheck;
|
||||
E int KeepLogs;
|
||||
E int KeepBackups;
|
||||
E int ForceForbidReason;
|
||||
|
||||
+2
-4
@@ -93,7 +93,7 @@ time_t UpdateTimeout;
|
||||
time_t ExpireTimeout;
|
||||
time_t ReadTimeout;
|
||||
time_t WarningTimeout;
|
||||
int TimeoutCheck;
|
||||
time_t TimeoutCheck;
|
||||
int KeepLogs;
|
||||
int KeepBackups;
|
||||
int ForceForbidReason;
|
||||
@@ -646,6 +646,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"options", "expiretimeout", "0", new ValueContainerTime(&ExpireTimeout), DT_TIME, ValidateNotZero},
|
||||
{"options", "readtimeout", "0", new ValueContainerTime(&ReadTimeout), DT_TIME, ValidateNotZero},
|
||||
{"options", "warningtimeout", "0", new ValueContainerTime(&WarningTimeout), DT_TIME, ValidateNotZero},
|
||||
{"options", "timeoutcheck", "0", new ValueContainerTime(&TimeoutCheck), DT_TIME, NoValidation},
|
||||
{"nickserv", "nick", "NickServ", new ValueContainerChar(&s_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
|
||||
{"nickserv", "description", "Nickname Registration Service", new ValueContainerChar(&desc_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
|
||||
{"nickserv", "database", "nick.db", new ValueContainerChar(&NickDBName), DT_CHARPTR, ValidateNotEmpty},
|
||||
@@ -1389,7 +1390,6 @@ Directive directives[] = {
|
||||
{"GlobalOnCycleMessage",
|
||||
{{PARAM_STRING, PARAM_RELOAD, &GlobalOnCycleMessage}}},
|
||||
{"GlobalOnCycleUP", {{PARAM_STRING, PARAM_RELOAD, &GlobalOnCycleUP}}},
|
||||
{"TimeoutCheck", {{PARAM_TIME, PARAM_RELOAD, &TimeoutCheck}}},
|
||||
{"UsePrivmsg", {{PARAM_SET, PARAM_RELOAD, &UsePrivmsg}}},
|
||||
{"UseStrictPrivMsg", {{PARAM_SET, PARAM_RELOAD, &UseStrictPrivMsg}}},
|
||||
{"UseSVSHOLD", {{PARAM_SET, PARAM_RELOAD, &UseSVSHOLD}}},
|
||||
@@ -1701,8 +1701,6 @@ int read_config(int reload)
|
||||
}
|
||||
}
|
||||
|
||||
CHECK(TimeoutCheck);
|
||||
|
||||
if (temp_nsuserhost) {
|
||||
if (!(s = strchr(temp_nsuserhost, '@'))) {
|
||||
NSEnforcerUser = temp_nsuserhost;
|
||||
|
||||
Reference in New Issue
Block a user