mirror of
https://github.com/anope/anope.git
synced 2026-07-08 00:43:12 +02:00
Added expire directive to chanserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1434 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -372,4 +372,10 @@ chanserv
|
||||
* can have registered.
|
||||
*/
|
||||
maxregistered = 20
|
||||
|
||||
/*
|
||||
* The length of time before a channel registration expires. This directive is optional, but
|
||||
* recommended. If not set, the default is 14 days.
|
||||
*/
|
||||
expire = 14d
|
||||
}
|
||||
|
||||
+1
-1
@@ -343,7 +343,7 @@ E bool NSAddAccessOnReg;
|
||||
|
||||
E int CSDefFlags;
|
||||
E int CSMaxReg;
|
||||
E int CSExpire;
|
||||
E time_t CSExpire;
|
||||
E int CSDefBantype;
|
||||
E int CSAccessMax;
|
||||
E int CSAutokickMax;
|
||||
|
||||
+3
-3
@@ -145,7 +145,7 @@ bool NSAddAccessOnReg;
|
||||
static std::string CSDefaults;
|
||||
int CSDefFlags;
|
||||
int CSMaxReg;
|
||||
int CSExpire;
|
||||
time_t CSExpire;
|
||||
int CSDefBantype;
|
||||
int CSAccessMax;
|
||||
int CSAutokickMax;
|
||||
@@ -555,7 +555,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"nickserv", "defaultlanguage", "0", new ValueContainerInt(&NSDefLanguage), DT_INTEGER, ValidateLanguage},
|
||||
{"nickserv", "regdelay", "0", new ValueContainerTime(&NSRegDelay), DT_TIME, NoValidation},
|
||||
{"nickserv", "resenddelay", "0", new ValueContainerTime(&NSResendDelay), DT_TIME, NoValidation},
|
||||
{"nickserv", "expire", "21d", new ValueContainerTime(&NSExpire), DT_TIME, ValidateNotZero},
|
||||
{"nickserv", "expire", "21d", new ValueContainerTime(&NSExpire), DT_TIME, NoValidation},
|
||||
{"nickserv", "preregexpire", "0", new ValueContainerTime(&NSRExpire), DT_TIME, ValidateEmailReg},
|
||||
{"nickserv", "maxaliases", "0", new ValueContainerInt(&NSMaxAliases), DT_INTEGER, NoValidation},
|
||||
{"nickserv", "accessmax", "0", new ValueContainerInt(&NSAccessMax), DT_INTEGER, ValidateNotZero},
|
||||
@@ -577,6 +577,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"chanserv", "database", "chan.db", new ValueContainerChar(&ChanDBName), DT_CHARPTR, ValidateNotEmpty},
|
||||
{"chanserv", "defaults", "keetopic secure securefounder signkick", new ValueContainerString(&CSDefaults), DT_BOOLEAN, NoValidation},
|
||||
{"chanserv", "maxregistered", "0", new ValueContainerInt(&CSMaxReg), DT_INTEGER, NoValidation},
|
||||
{"chanserv", "expire", "14d", new ValueContainerTime(&CSExpire), DT_TIME, NoValidation},
|
||||
{NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation}
|
||||
};
|
||||
/* These tags can occur multiple times, and therefore they have special code to read them
|
||||
@@ -1183,7 +1184,6 @@ Directive directives[] = {
|
||||
{"CSAutokickReason",
|
||||
{{PARAM_STRING, PARAM_RELOAD, &CSAutokickReason}}},
|
||||
{"CSDefBantype", {{PARAM_INT, PARAM_RELOAD, &CSDefBantype}}},
|
||||
{"CSExpire", {{PARAM_TIME, PARAM_RELOAD, &CSExpire}}},
|
||||
{"CSInhabit", {{PARAM_TIME, PARAM_RELOAD, &CSInhabit}}},
|
||||
{"CSListMax", {{PARAM_POSINT, PARAM_RELOAD, &CSListMax}}},
|
||||
{"CSListOpersOnly", {{PARAM_SET, PARAM_RELOAD, &CSListOpersOnly}}},
|
||||
|
||||
Reference in New Issue
Block a user