mirror of
https://github.com/anope/anope.git
synced 2026-06-28 05:36:38 +02:00
Added keeplogs directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1719 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -341,6 +341,16 @@ options {
|
||||
* above for performance impacts if you do this.
|
||||
*/
|
||||
timeoutcheck = 3s
|
||||
|
||||
/*
|
||||
* Set the number of days log files are kept. If you don't give it, or if you
|
||||
* set it to 0, logs will be kept indefinitely.
|
||||
*
|
||||
* NOTE: Services must run 24 hours a day for this feature to work.
|
||||
*
|
||||
* This directive is optional, but recommended.
|
||||
*/
|
||||
keeplogs = 7
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -647,6 +647,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"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},
|
||||
{"options", "keeplogs", "0", new ValueContainerInt(&KeepLogs), DT_INTEGER, 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},
|
||||
@@ -1361,7 +1362,6 @@ Directive directives[] = {
|
||||
{"DumpCore", {{PARAM_SET, 0, &DumpCore}}},
|
||||
{"ForceForbidReason", {{PARAM_SET, PARAM_RELOAD, &ForceForbidReason}}},
|
||||
{"KeepBackups", {{PARAM_INT, PARAM_RELOAD, &KeepBackups}}},
|
||||
{"KeepLogs", {{PARAM_INT, PARAM_RELOAD, &KeepLogs}}},
|
||||
{"LocalAddress", {{PARAM_STRING, 0, &LocalHost},
|
||||
{PARAM_PORT, PARAM_OPTIONAL, &LocalPort}}},
|
||||
{"LogUsers", {{PARAM_SET, PARAM_RELOAD, &LogUsers}}},
|
||||
|
||||
Reference in New Issue
Block a user