diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-26 04:36:35 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-26 04:36:35 +0000 |
commit | 07824df829c1ae155df1eee8e60e6b8fc5226bd8 (patch) | |
tree | e259fa9eb2108c893b669dd76c2fd34dca6f1403 | |
parent | 2df19fbcd70187dd35f0352d080959cfb645055e (diff) |
Added disableraw directive to operserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1479 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | data/example_new.conf | 7 | ||||
-rw-r--r-- | include/extern.h | 2 | ||||
-rw-r--r-- | src/config.c | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index 648b80420..081864827 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -745,4 +745,11 @@ operserv * is optional. */ #killonsqline = yes + + /* + * Disables the highly destructive OperServ RAW command. This directive is optional, but HIGHLY + * recommended. Not setting this and causing problems with your network using RAW will not be + * supported. + */ + disableraw = yes } diff --git a/include/extern.h b/include/extern.h index 946e9135b..ea32a4a63 100644 --- a/include/extern.h +++ b/include/extern.h @@ -386,7 +386,7 @@ E time_t SZLineExpiry; E bool AkillOnAdd; E bool KillonSGline; E bool KillonSQline; -E int DisableRaw; +E bool DisableRaw; E int WallOper; E int WallBadOS; E int WallOSGlobal; diff --git a/src/config.c b/src/config.c index e339009d5..ff144360e 100644 --- a/src/config.c +++ b/src/config.c @@ -183,7 +183,7 @@ int RootNumber; bool SuperAdmin; int LogBot; bool LogMaxUsers; -int DisableRaw; +bool DisableRaw; time_t AutokillExpiry; time_t ChankillExpiry; time_t SGLineExpiry; @@ -655,6 +655,7 @@ int ServerConfig::Read(bool bail) {"operserv", "akillonadd", "no", new ValueContainerBool(&AkillOnAdd), DT_BOOLEAN, NoValidation}, {"operserv", "killonsgline", "no", new ValueContainerBool(&KillonSGline), DT_BOOLEAN, NoValidation}, {"operserv", "killonsqline", "no", new ValueContainerBool(&KillonSQline), DT_BOOLEAN, NoValidation}, + {"operserv", "disableraw", "no", new ValueContainerBool(&DisableRaw), 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 @@ -1233,7 +1234,6 @@ Directive directives[] = { {"BotCoreModules", {{PARAM_STRING, PARAM_RELOAD, &BotCoreModules}}}, {"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}}, {"DefSessionLimit", {{PARAM_POSINT, 0, &DefSessionLimit}}}, - {"DisableRaw", {{PARAM_SET, PARAM_RELOAD, &DisableRaw}}}, {"DontQuoteAddresses", {{PARAM_SET, PARAM_RELOAD, &DontQuoteAddresses}}}, {"DumpCore", {{PARAM_SET, 0, &DumpCore}}}, |