mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user