diff options
-rw-r--r-- | data/example_new.conf | 6 | ||||
-rw-r--r-- | include/extern.h | 2 | ||||
-rw-r--r-- | src/config.c | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index 3dd5193d0..62f4c89ca 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -430,6 +430,12 @@ options { * network. This directive is only required if you enable globaloncycle above. */ globaloncycleup = "Services are now back online - have a nice day" + + /* + * If set, Services will hide the IRC operator's nick in a global + * message/notice. This directive is optional. + */ + #anonymousglobal = yes } /* diff --git a/include/extern.h b/include/extern.h index a39ec0213..624c59f35 100644 --- a/include/extern.h +++ b/include/extern.h @@ -371,7 +371,7 @@ E char *BSFantasyCharacter; E bool HideStatsO; E bool GlobalOnCycle; -E int AnonymousGlobal; +E bool AnonymousGlobal; E char *GlobalOnCycleMessage; E char *GlobalOnCycleUP; E char **ServicesRoots; diff --git a/src/config.c b/src/config.c index 1b3f627a9..66d307c28 100644 --- a/src/config.c +++ b/src/config.c @@ -170,7 +170,7 @@ char *BSFantasyCharacter; bool HideStatsO; bool GlobalOnCycle; -int AnonymousGlobal; +bool AnonymousGlobal; int RestrictOperNicks; char *GlobalOnCycleMessage; char *GlobalOnCycleUP; @@ -669,6 +669,7 @@ int ServerConfig::Read(bool bail) {"options", "globaloncycle", "no", new ValueContainerBool(&GlobalOnCycle), DT_BOOLEAN, NoValidation}, {"options", "globaloncycledown", "", new ValueContainerChar(&GlobalOnCycleMessage), DT_CHARPTR, ValidateGlobalOnCycle}, {"options", "globaloncycleup", "", new ValueContainerChar(&GlobalOnCycleUP), DT_CHARPTR, ValidateGlobalOnCycle}, + {"options", "anonymousglobal", "no", new ValueContainerBool(&AnonymousGlobal), DT_BOOLEAN, NoValidation}, {"nickserv", "nick", "NickServ", new ValueContainerChar(&s_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, {"nickserv", "description", "Nickname Registration Service", new ValueContainerChar(&desc_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, {"nickserv", "database", "nick.db", new ValueContainerChar(&NickDBName), DT_CHARPTR, ValidateNotEmpty}, @@ -1401,7 +1402,6 @@ Directive directives[] = { {PARAM_PORT, 0, &RemotePort3}, {PARAM_STRING, 0, &RemotePassword3}}}, {"RestrictOperNicks", {{PARAM_SET, PARAM_RELOAD, &RestrictOperNicks}}}, - {"AnonymousGlobal", {{PARAM_SET, PARAM_RELOAD, &AnonymousGlobal}}}, {"UseSVSHOLD", {{PARAM_SET, PARAM_RELOAD, &UseSVSHOLD}}}, {"UseTS6", {{PARAM_SET, 0, &UseTS6}}}, {"UnRestrictSAdmin", {{PARAM_SET, PARAM_RELOAD, &UnRestrictSAdmin}}}, |