Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 812ec24105e591c502bc91ef9815161987cc7805 1 parent a36d47c
@kylef kylef authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/IRCSock.cpp
View
5 src/IRCSock.cpp
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.