mirror of
https://github.com/znc/znc.git
synced 2026-07-21 09:03:32 +02:00
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:
@@ -81,6 +81,9 @@ void CIRCSock::ReadLine(const CString& sData) {
|
|||||||
|
|
||||||
if (sLine.Equals("PING ", false, 5)) {
|
if (sLine.Equals("PING ", false, 5)) {
|
||||||
PutIRC("PONG " + sLine.substr(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)) {
|
} else if (sLine.Equals("ERROR ", false, 6)) {
|
||||||
//ERROR :Closing Link: nick[24.24.24.24] (Excess Flood)
|
//ERROR :Closing Link: nick[24.24.24.24] (Excess Flood)
|
||||||
CString sError(sLine.substr(7));
|
CString sError(sLine.substr(7));
|
||||||
|
|||||||
Reference in New Issue
Block a user