diff options
| author | 2010-03-22 17:33:06 -0500 | |
|---|---|---|
| committer | 2010-08-03 17:32:41 -0400 | |
| commit | b01c7184058c6eddeeef142f3d3782cc580e22c0 (patch) | |
| tree | 1d1bfbdeaa4f629e4a11f4cab7138642c5f004a0 /src/configreader.cpp | |
| parent | Fix MySQL crash on module unload with empty query queue (diff) | |
| download | inspircd++-b01c7184058c6eddeeef142f3d3782cc580e22c0.tar.gz inspircd++-b01c7184058c6eddeeef142f3d3782cc580e22c0.tar.bz2 inspircd++-b01c7184058c6eddeeef142f3d3782cc580e22c0.zip | |
Change <security:operspywhois> to a tristate
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index b16b826c4..790ecb55b 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -21,7 +21,7 @@ ServerConfig::ServerConfig() { WhoWasGroupSize = WhoWasMaxGroups = WhoWasMaxKeep = 0; - RawLog = NoUserDns = OperSpyWhois = HideBans = HideSplits = UndernetMsgPrefix = NameOnlyModes = false; + RawLog = NoUserDns = HideBans = HideSplits = UndernetMsgPrefix = NameOnlyModes = false; WildcardIPv6 = CycleHosts = InvBypassModes = true; dns_timeout = 5; MaxTargets = 20; @@ -417,7 +417,6 @@ void ServerConfig::Fill() HideBans = security->getBool("hidebans"); HideWhoisServer = security->getString("hidewhois"); HideKillsServer = security->getString("hidekills"); - OperSpyWhois = security->getBool("operspywhois"); RestrictBannedUsers = security->getBool("restrictbannedusers", true); GenericOper = security->getBool("genericoper"); NoUserDns = ConfValue("performance")->getBool("nouserdns"); @@ -519,6 +518,14 @@ void ServerConfig::Fill() else AnnounceInvites = ServerConfig::INVITE_ANNOUNCE_NONE; + v = security->getString("operspywhois"); + if (v == "splitmsg") + OperSpyWhois = SPYWHOIS_SPLITMSG; + else if (v == "on" || v == "yes") + OperSpyWhois = SPYWHOIS_NEWLINE; + else + OperSpyWhois = SPYWHOIS_NONE; + Limits.Finalise(); } |
