From e2aba7587b1263e8e231f828100d3d3575c2f2ec Mon Sep 17 00:00:00 2001 From: silverleo Date: Tue, 24 Nov 2009 13:06:25 +0000 Subject: [PATCH] Revert a commit from r1527 that made some PONG replies pass through to the client. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1668 726aef4b-f618-498e-8847-2d620e286838 --- IRCSock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRCSock.cpp b/IRCSock.cpp index ed5246e9..e5eb26d2 100644 --- a/IRCSock.cpp +++ b/IRCSock.cpp @@ -81,7 +81,7 @@ void CIRCSock::ReadLine(const CString& sData) { PutIRC("PONG " + sLine.substr(5)); m_pUser->PutUser(sLine); return; - } else if (sLine.Equals("PONG ", false, 5) && sLine.Token(3).Equals(":ZNC")) { + } 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)) {