mirror of
https://github.com/anope/anope.git
synced 2026-07-01 00:26:37 +02:00
Added listmax directive to chanserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1441 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -416,4 +416,9 @@ chanserv
|
||||
* Limits the use of the ChanServ LIST command to IRC operators. This directive is optional.
|
||||
*/
|
||||
#listopersonly = yes
|
||||
|
||||
/*
|
||||
* The maximum number of channels to be returned for a ChanServ LIST command.
|
||||
*/
|
||||
listmax = 50
|
||||
}
|
||||
|
||||
+1
-2
@@ -591,6 +591,7 @@ int ServerConfig::Read(bool bail)
|
||||
{"chanserv", "autokickreason", "User has been banned from the channel", new ValueContainerChar(&CSAutokickReason), DT_CHARPTR, ValidateNotEmpty},
|
||||
{"chanserv", "inhabit", "0", new ValueContainerTime(&CSInhabit), DT_TIME, ValidateNotZero},
|
||||
{"chanserv", "listopersonly", "no", new ValueContainerBool(&CSListOpersOnly), DT_BOOLEAN, NoValidation},
|
||||
{"chanserv", "listmax", "0", new ValueContainerInt(&CSListMax), DT_INTEGER, ValidateNotZero},
|
||||
{NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation}
|
||||
};
|
||||
/* These tags can occur multiple times, and therefore they have special code to read them
|
||||
@@ -1192,7 +1193,6 @@ Directive directives[] = {
|
||||
{"HostServName", {{PARAM_STRING, 0, &s_HostServ},
|
||||
{PARAM_STRING, 0, &desc_HostServ}}},
|
||||
{"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}},
|
||||
{"CSListMax", {{PARAM_POSINT, PARAM_RELOAD, &CSListMax}}},
|
||||
{"CSRestrictGetPass", {{PARAM_SET, PARAM_RELOAD, &CSRestrictGetPass}}},
|
||||
{"CSOpersOnly", {{PARAM_SET, PARAM_RELOAD, &CSOpersOnly}}},
|
||||
{"DefSessionLimit", {{PARAM_POSINT, 0, &DefSessionLimit}}},
|
||||
@@ -1692,7 +1692,6 @@ int read_config(int reload)
|
||||
CHECK(ReadTimeout);
|
||||
CHECK(WarningTimeout);
|
||||
CHECK(TimeoutCheck);
|
||||
CHECK(CSListMax);
|
||||
CHECK(ServicesRoot);
|
||||
CHECK(AutokillExpiry);
|
||||
CHECK(ChankillExpiry);
|
||||
|
||||
Reference in New Issue
Block a user