Block pong replies that we requested.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1309 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
silverleo
2008-12-29 18:43:47 +00:00
parent 05b259baef
commit cc3fcc17bb

View File

@@ -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));