From cf6ec5646b6c7c09fd54730c352f8805ea90d7ca Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 31 Jan 2015 10:01:27 +0000 Subject: [PATCH] Add ZNC to CTCP VERSION reply even if client is connected. Previously, it replied to CTCP VERSION, but only if no client is connected. See https://github.com/znc/znc/issues/820#issuecomment-70506203 --- src/Client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Client.cpp b/src/Client.cpp index 463559f0..fce77421 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -234,6 +234,10 @@ void CClient::ReadLine(const CString& sData) { sCTCP.LeftChomp(); sCTCP.RightChomp(); + if (sCTCP.Token(0) == "VERSION") { + sCTCP += " via " + CZNC::GetTag(false); + } + NETWORKMODULECALL(OnUserCTCPReply(sTarget, sCTCP), m_pUser, m_pNetwork, this, &bContinue); if (bContinue) continue;