Skip to content

Commit

Permalink
Merge branch 'redirects'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Sokolov committed Sep 2, 2011
2 parents 5e73af6 + 8f98384 commit fa7de5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions IRCSock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include "Server.h"

// These are used in OnGeneralCTCP()
const time_t CIRCSock::m_uCTCPFloodTime = 5;
Expand Down Expand Up @@ -162,6 +163,16 @@ void CIRCSock::ReadLine(const CString& sData) {
ParseISupport(sRest);
m_pNetwork->UpdateExactRawBuffer(":" + sServer + " " + sCmd + " ", " " + sRest);
break;
case 10: { // :irc.server.com 010 nick <hostname> <port> :<info>
CString sHost = sRest.Token(0);
CString sPort = sRest.Token(1);
CString sInfo = sRest.Token(2, true).TrimPrefix_n(":");
m_pUser->PutStatus("Server [" + m_pUser->GetCurrentServer()->GetString(false) +
"] redirects us to [" + sHost + ":" + sPort + "] with reason [" + sInfo + "]");
m_pUser->PutStatus("Perhaps you want to add it as a new server.");
// Don't send server redirects to the client
return;
}
case 2:
case 3:
case 4:
Expand Down

0 comments on commit fa7de5a

Please sign in to comment.