From 4ca6d143113760cd5ffa2f00182d939881a30a70 Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Sun, 26 Oct 2008 20:28:48 +0000 Subject: Added opersonly directive to operserv block in new config. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1490 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 c7825a5e1..660b69052 100644 --- a/src/config.c +++ b/src/config.c @@ -227,7 +227,7 @@ char *ExceptionDBName; char *SessionLimitExceeded; char *SessionLimitDetailsLoc; -int OSOpersOnly; +bool OSOpersOnly; char *Modules; char *ModulesDelayed; @@ -677,6 +677,7 @@ int ServerConfig::Read(bool bail) {"operserv", "maxsessionkill", "0", new ValueContainerInt(&MaxSessionKill), DT_INTEGER, NoValidation}, {"operserv", "sessionautokillexpiry", "0", new ValueContainerTime(&SessionAutoKillExpiry), DT_TIME, NoValidation}, {"operserv", "addakiller", "no", new ValueContainerBool(&AddAkiller), DT_BOOLEAN, NoValidation}, + {"opserver", "opersonly", "no", new ValueContainerBool(&OSOpersOnly), 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 @@ -1323,7 +1324,6 @@ Directive directives[] = { {"ServerDesc", {{PARAM_STRING, 0, &ServerDesc}}}, {"ServerName", {{PARAM_STRING, 0, &ServerName}}}, {"ServiceUser", {{PARAM_STRING, 0, &temp_userhost}}}, - {"OSOpersOnly", {{PARAM_SET, PARAM_RELOAD, &OSOpersOnly}}}, {"HideStatsO", {{PARAM_SET, PARAM_RELOAD, &HideStatsO}}}, {"GlobalOnCycle", {{PARAM_SET, PARAM_RELOAD, &GlobalOnCycle}}}, {"AnonymousGlobal", {{PARAM_SET, PARAM_RELOAD, &AnonymousGlobal}}}, -- cgit