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
This commit is contained in:
Alexey Sokolov committed 2015-01-31 10:01:27 +00:00
1 parent cbbd18cc6b
commit cf6ec5646b
1 file changed
+4
+4
View File
@@ -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;