1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 06:36:38 +02:00

Added opersonly directive to chanserv block in new config.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1443 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-13 23:33:33 +00:00
parent 7b8ada2efd
commit a2c896c775
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -427,4 +427,9 @@ chanserv
* channel. This directive is optional.
*/
#restrictgetpass = yes
/*
* Allow only IRC Operators to use ChanServ. This directive is optional.
*/
#opersonly = yes
}
+1 -1
View File
@@ -352,7 +352,7 @@ E time_t CSInhabit;
E bool CSListOpersOnly;
E int CSListMax;
E bool CSRestrictGetPass;
E int CSOpersOnly;
E bool CSOpersOnly;
E int MSMaxMemos;
E int MSSendDelay;
+2 -2
View File
@@ -154,7 +154,7 @@ time_t CSInhabit;
bool CSListOpersOnly;
int CSListMax;
bool CSRestrictGetPass;
int CSOpersOnly;
bool CSOpersOnly;
int MSMaxMemos;
int MSSendDelay;
@@ -593,6 +593,7 @@ int ServerConfig::Read(bool bail)
{"chanserv", "listopersonly", "no", new ValueContainerBool(&CSListOpersOnly), DT_BOOLEAN, NoValidation},
{"chanserv", "listmax", "0", new ValueContainerInt(&CSListMax), DT_INTEGER, ValidateNotZero},
{"chanserv", "restrictgetpass", "no", new ValueContainerBool(&CSRestrictGetPass), DT_BOOLEAN, NoValidation},
{"chanserv", "opersonly", "no", new ValueContainerBool(&CSOpersOnly), 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
@@ -1194,7 +1195,6 @@ Directive directives[] = {
{"HostServName", {{PARAM_STRING, 0, &s_HostServ},
{PARAM_STRING, 0, &desc_HostServ}}},
{"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}},
{"CSOpersOnly", {{PARAM_SET, PARAM_RELOAD, &CSOpersOnly}}},
{"DefSessionLimit", {{PARAM_POSINT, 0, &DefSessionLimit}}},
{"DisableRaw", {{PARAM_SET, PARAM_RELOAD, &DisableRaw}}},
{"DontQuoteAddresses",