diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-13 23:11:56 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-13 23:11:56 +0000 |
commit | a8eb837244180d7bd58ed3f29c48a0d1b280eba1 (patch) | |
tree | 247ff9374d1cf061584936a4d2ab8e50c79466cc | |
parent | c912a7a0aa814590c79a3f3c6226ad557feec564 (diff) |
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
-rw-r--r-- | data/example_new.conf | 5 | ||||
-rw-r--r-- | include/extern.h | 2 | ||||
-rw-r--r-- | src/config.c | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index b3966514e..0e46b85e5 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -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 } diff --git a/include/extern.h b/include/extern.h index ac50d9903..eaac2fb50 100644 --- a/include/extern.h +++ b/include/extern.h @@ -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; diff --git a/src/config.c b/src/config.c index c09a9b32c..bb9fb1d1d 100644 --- a/src/config.c +++ b/src/config.c @@ -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}}}, |