transperancy: Make the user aware that DEBUG mode is enabled.

This commit is contained in:
Jos Ahrens
2017-10-02 14:35:38 +02:00
parent 448f020a7a
commit ab501767a1
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -23,6 +23,7 @@
#include <znc/Chan.h>
#include <znc/Query.h>
#include <znc/Message.h>
#include <znc/ZNCDebug.h>
#include <algorithm>
#include <memory>
@@ -724,6 +725,11 @@ void CIRCNetwork::ClientConnected(CClient* pClient) {
pClient->PutStatus(
"You are currently disconnected from IRC. "
"Use 'connect' to reconnect.");
if (CDebug::Debug()) {
pClient->PutStatus("ZNC is presently running in DEBUG mode. Sensitive"
" data during your current session may be exposed to the host.");
}
}
void CIRCNetwork::ClientDisconnected(CClient* pClient) {