From 6d1e77bb524c90b8ed6286ada83339dd5160a2a3 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 18 Jun 2018 00:41:18 +0100 Subject: [PATCH] Revert "transperancy: Make the user aware that DEBUG mode is enabled." This reverts commit ab501767a18eece2b3c553868d0c7cfbe496d658. Superceded by admindebug module --- src/Client.cpp | 7 ------- src/IRCNetwork.cpp | 7 ------- 2 files changed, 14 deletions(-) diff --git a/src/Client.cpp b/src/Client.cpp index 82164986..cec976c5 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -20,7 +20,6 @@ #include #include #include -#include 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. " diff --git a/src/IRCNetwork.cpp b/src/IRCNetwork.cpp index 217096f2..0284dc53 100644 --- a/src/IRCNetwork.cpp +++ b/src/IRCNetwork.cpp @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -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) {