From 7b8ada2efd1c6a3e92460010a9025ae0c9507066 Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Mon, 13 Oct 2008 23:16:21 +0000 Subject: Added restrictgetpass directive to chanserv block in new config. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1442 5417fbe8-f217-4b02-8779-1006273d7864 --- src/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/config.c b/src/config.c index 983fd16fa..fdfdef402 100644 --- a/src/config.c +++ b/src/config.c @@ -153,7 +153,7 @@ char *CSAutokickReason; time_t CSInhabit; bool CSListOpersOnly; int CSListMax; -int CSRestrictGetPass; +bool CSRestrictGetPass; int CSOpersOnly; int MSMaxMemos; @@ -592,6 +592,7 @@ int ServerConfig::Read(bool bail) {"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}, + {"chanserv", "restrictgetpass", "no", new ValueContainerBool(&CSRestrictGetPass), 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 @@ -1193,7 +1194,6 @@ Directive directives[] = { {"HostServName", {{PARAM_STRING, 0, &s_HostServ}, {PARAM_STRING, 0, &desc_HostServ}}}, {"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}}, - {"CSRestrictGetPass", {{PARAM_SET, PARAM_RELOAD, &CSRestrictGetPass}}}, {"CSOpersOnly", {{PARAM_SET, PARAM_RELOAD, &CSOpersOnly}}}, {"DefSessionLimit", {{PARAM_POSINT, 0, &DefSessionLimit}}}, {"DisableRaw", {{PARAM_SET, PARAM_RELOAD, &DisableRaw}}}, -- cgit