1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 21:13:12 +02:00

Added listopersonly directive to chanserv block in new config.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1440 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-13 23:11:56 +00:00
parent c912a7a0aa
commit a8eb837244
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -411,4 +411,9 @@ chanserv
* premitted to be in. This only occurs when the user is the only one in the channel.
*/
inhabit = 15s
/*
* Limits the use of the ChanServ LIST command to IRC operators. This directive is optional.
*/
#listopersonly = yes
}
+1 -1
View File
@@ -349,7 +349,7 @@ E int CSAccessMax;
E int CSAutokickMax;
E char *CSAutokickReason;
E time_t CSInhabit;
E int CSListOpersOnly;
E bool CSListOpersOnly;
E int CSListMax;
E int CSRestrictGetPass;
E int CSOpersOnly;
+2 -2
View File
@@ -151,7 +151,7 @@ int CSAccessMax;
int CSAutokickMax;
char *CSAutokickReason;
time_t CSInhabit;
int CSListOpersOnly;
bool CSListOpersOnly;
int CSListMax;
int CSRestrictGetPass;
int CSOpersOnly;
@@ -590,6 +590,7 @@ int ServerConfig::Read(bool bail)
{"chanserv", "autokickmax", "0", new ValueContainerInt(&CSAutokickMax), DT_INTEGER, ValidateNotZero},
{"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},
{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[] = {
{PARAM_STRING, 0, &desc_HostServ}}},
{"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}},
{"CSListMax", {{PARAM_POSINT, PARAM_RELOAD, &CSListMax}}},
{"CSListOpersOnly", {{PARAM_SET, PARAM_RELOAD, &CSListOpersOnly}}},
{"CSRestrictGetPass", {{PARAM_SET, PARAM_RELOAD, &CSRestrictGetPass}}},
{"CSOpersOnly", {{PARAM_SET, PARAM_RELOAD, &CSOpersOnly}}},
{"DefSessionLimit", {{PARAM_POSINT, 0, &DefSessionLimit}}},