Permalink
Browse files

Don't forward a 670 to a client

This might result in the client switching to SSL if it supports it.
Breaking the current connection
  • Loading branch information...
1 parent aa085ef commit 94ffcbed591be8aa128a8ea0612211ed6bef9118 @kylef kylef committed Nov 7, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/IRCSock.cpp
View
@@ -375,13 +375,14 @@ void CIRCSock::ReadLine(const CString& sData) {
}
case 670:
// :hydra.sector5d.org 670 kylef :STARTTLS successful, go ahead with TLS handshake
- // 670 is a responce to `STARTTLS` telling the client to switch to TLS
+ // 670 is a response to `STARTTLS` telling the client to switch to TLS
if (!GetSSL()) {
StartTLS();
+ m_pNetwork->PutStatus("Switched to SSL (STARTTLS)");
}
- break;
+ return;
}
} else {
CNick Nick(sLine.Token(0).TrimPrefix_n());

0 comments on commit 94ffcbe

Please sign in to comment.