]> jfr.im git - irc/znc/znc.git/commitdiff
Revert "transperancy: Make the user aware that DEBUG mode is enabled."
authorAlexey Sokolov <redacted>
Sun, 17 Jun 2018 23:41:18 +0000 (00:41 +0100)
committerAlexey Sokolov <redacted>
Sun, 17 Jun 2018 23:41:18 +0000 (00:41 +0100)
This reverts commit ab501767a18eece2b3c553868d0c7cfbe496d658.

Superceded by admindebug module

src/Client.cpp
src/IRCNetwork.cpp

index 8216498652aa4a1e9a15ba6a8f006b663ee52cae..cec976c537fcc6bb67117fac2ee80b4d5ad0f918 100644 (file)
@@ -20,7 +20,6 @@
 #include <znc/User.h>
 #include <znc/IRCNetwork.h>
 #include <znc/Query.h>
-#include <znc/ZNCDebug.h>
 
 using std::set;
 using std::map;
@@ -89,12 +88,6 @@ CClient::~CClient() {
 
 void CClient::SendRequiredPasswordNotice() {
     PutClient(":irc.znc.in 464 " + GetNick() + " :Password required");
-    if (CDebug::Debug()) {
-        PutClient(
-            ":irc.znc.in NOTICE " + GetNick() + " :*** "
-            "ZNC is presently running in DEBUG mode. Sensitive data during "
-            "your current session may be exposed to the host.");
-    }
     PutClient(
         ":irc.znc.in NOTICE " + GetNick() + " :*** "
         "You need to send your password. "
index 217096f21d81318a5d4798ae314ce55e842267f1..0284dc53eca4f40fd711feff250442e85275df11 100644 (file)
@@ -23,7 +23,6 @@
 #include <znc/Chan.h>
 #include <znc/Query.h>
 #include <znc/Message.h>
-#include <znc/ZNCDebug.h>
 #include <algorithm>
 #include <memory>
 
@@ -728,12 +727,6 @@ void CIRCNetwork::ClientConnected(CClient* pClient) {
         pClient->PutStatus(
             t_s("You are currently disconnected from IRC. Use 'connect' to "
                 "reconnect."));
-
-    if (CDebug::Debug()) {
-        pClient->PutStatus(
-            t_s("ZNC is presently running in DEBUG mode. Sensitive data during "
-                "your current session may be exposed to the host."));
-    }
 }
 
 void CIRCNetwork::ClientDisconnected(CClient* pClient) {