mirror of
https://github.com/anope/anope.git
synced 2026-07-04 13:13:14 +02:00
Added expiretimeout directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1712 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -301,6 +301,13 @@ options {
|
||||
* the OperServ UPDATE command.
|
||||
*/
|
||||
updatetimeout = 5m
|
||||
|
||||
/*
|
||||
* Sets the delay between checks for expired nicknames and channels. The
|
||||
* OperServ UPDATE command will also cause a check for expiration and reset
|
||||
* this timer.
|
||||
*/
|
||||
expiretimeout = 30m
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -288,7 +288,7 @@ E bool StrictPasswords;
|
||||
E int BadPassLimit;
|
||||
E time_t BadPassTimeout;
|
||||
E time_t UpdateTimeout;
|
||||
E int ExpireTimeout;
|
||||
E time_t ExpireTimeout;
|
||||
E int ReadTimeout;
|
||||
E int WarningTimeout;
|
||||
E int TimeoutCheck;
|
||||
|
||||
+2
-3
@@ -90,7 +90,7 @@ bool StrictPasswords;
|
||||
int BadPassLimit;
|
||||
time_t BadPassTimeout;
|
||||
time_t UpdateTimeout;
|
||||
int ExpireTimeout;
|
||||
time_t ExpireTimeout;
|
||||
int ReadTimeout;
|
||||
int WarningTimeout;
|
||||
int TimeoutCheck;
|
||||
@@ -643,6 +643,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"options", "badpasslimit", "0", new ValueContainerInt(&BadPassLimit), DT_INTEGER, NoValidation},
|
||||
{"options", "badpasstimeout", "0", new ValueContainerTime(&BadPassTimeout), DT_TIME, NoValidation},
|
||||
{"options", "updatetimeout", "0", new ValueContainerTime(&UpdateTimeout), DT_TIME, ValidateNotZero},
|
||||
{"options", "expiretimeout", "0", new ValueContainerTime(&ExpireTimeout), DT_TIME, ValidateNotZero},
|
||||
{"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},
|
||||
@@ -1355,7 +1356,6 @@ bool ValueItem::GetBool()
|
||||
|
||||
Directive directives[] = {
|
||||
{"DumpCore", {{PARAM_SET, 0, &DumpCore}}},
|
||||
{"ExpireTimeout", {{PARAM_TIME, PARAM_RELOAD, &ExpireTimeout}}},
|
||||
{"ForceForbidReason", {{PARAM_SET, PARAM_RELOAD, &ForceForbidReason}}},
|
||||
{"KeepBackups", {{PARAM_INT, PARAM_RELOAD, &KeepBackups}}},
|
||||
{"KeepLogs", {{PARAM_INT, PARAM_RELOAD, &KeepLogs}}},
|
||||
@@ -1701,7 +1701,6 @@ int read_config(int reload)
|
||||
}
|
||||
}
|
||||
|
||||
CHECK(ExpireTimeout);
|
||||
CHECK(ReadTimeout);
|
||||
CHECK(WarningTimeout);
|
||||
CHECK(TimeoutCheck);
|
||||
|
||||
Reference in New Issue
Block a user