From cc3fcc17bbadfdfd83585c5b6b31ddf6a0ae3236 Mon Sep 17 00:00:00 2001 From: silverleo Date: Mon, 29 Dec 2008 18:43:47 +0000 Subject: [PATCH] Block pong replies that we requested. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1309 726aef4b-f618-498e-8847-2d620e286838 --- IRCSock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IRCSock.cpp b/IRCSock.cpp index e98fd649..0efb13e8 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -81,6 +81,9 @@ void CIRCSock::ReadLine(const CString& sData) { if (sLine.Equals("PING ", false, 5)) { PutIRC("PONG " + sLine.substr(5)); + } else if (sLine.Token(1).Equals("PONG") && sLine.Token(3).Equals(":ZNC")) { + // We asked for this so don't forward the reply to clients. + return; } else if (sLine.Equals("ERROR ", false, 6)) { //ERROR :Closing Link: nick[24.24.24.24] (Excess Flood) CString sError(sLine.substr(7));