Merge pull request #1446 from Zarthus/feature/debug-mode-awareness

transparency: Make the user aware that DEBUG mode is enabled.
This commit is contained in:
Alexey Sokolov authored and GitHub committed 2017-10-04 19:09:09 -07:00
commit 2ebd358521
2 files changed
+12

No files matched your search

+6
View File
@@ -89,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. "