]> jfr.im git - irc/rizon/znc.git/commitdiff
Don't send server redirects to client [TorrentialStorm]
authorTorrentialStorm <redacted>
Wed, 24 Aug 2011 12:15:20 +0000 (13:15 +0100)
committerUli Schlachter <redacted>
Sun, 1 Jan 2012 13:16:34 +0000 (14:16 +0100)
IRCSock.cpp

index 81f298623b76dbf1de68dd30672a7b2b9afbe606..d8ef49921cf0f61d4d65bdab992715b4babf9509 100644 (file)
@@ -121,6 +121,8 @@ void CIRCSock::ReadLine(const CString& sData) {
                CString sRest = sLine.Token(3, true);
 
                switch (uRaw) {
+                       case 10: // Don't send server redirects to the client
+                               break;
                        case 1: { // :irc.server.com 001 nick :Welcome to the Internet Relay Network nick
                                if (m_bAuthed && sServer == "irc.znc.in") {
                                        // m_bAuthed == true => we already received another 001 => we might be in a traffic loop