mirror of
https://github.com/znc/znc.git
synced 2026-07-06 18:01:21 +02:00
transperancy: Make the user aware that DEBUG mode is enabled.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <znc/User.h>
|
||||
#include <znc/IRCNetwork.h>
|
||||
#include <znc/Query.h>
|
||||
#include <znc/ZNCDebug.h>
|
||||
|
||||
using std::set;
|
||||
using std::map;
|
||||
@@ -88,6 +89,12 @@ 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. "
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user