diff options
author | Dylan Frank <b00mx0r@aureus.pw> | 2018-03-25 09:02:00 -0700 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-03-25 17:02:00 +0100 |
commit | c7de80233a0cc52b30ad91ff2de9ecc2abdfba38 (patch) | |
tree | fc655b6d57541a38c3586878d1147d6453c9eba9 /src/configreader.cpp | |
parent | 017e23fb61cdda7f92ca175b7afba5da5f78bd36 (diff) |
Separate secret and private channels on whois for non-opers (#1447)
Separate secret and private channels on WHOIS for all users.
- Move the config parsing from the core to core_whois.
- Replace <security:operspywhois> with an oper privilege.
- Introduce <options:splitwhois> to split WHOIS channel lists.
Closes #969.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 970aaba80..4643c7613 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -503,14 +503,6 @@ void ServerConfig::Fill() AnnounceInvites = ServerConfig::INVITE_ANNOUNCE_DYNAMIC; else AnnounceInvites = ServerConfig::INVITE_ANNOUNCE_NONE; - - v = security->getString("operspywhois"); - if (v == "splitmsg") - OperSpyWhois = SPYWHOIS_SPLITMSG; - else if (v == "on" || v == "yes") - OperSpyWhois = SPYWHOIS_SINGLEMSG; - else - OperSpyWhois = SPYWHOIS_NONE; } // WARNING: it is not safe to use most of the codebase in this function, as it |