diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index c00aee57e..ac385ceb5 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -83,9 +83,12 @@ class CommandStartTLS : public Command { if (!user->io) { + user->WriteNumeric(670, "%s :STARTTLS successful, go ahead with TLS handshake", user->nick.c_str()); user->io = Caller; Caller->OnRawSocketAccept(user->GetFd(), user->GetIPString(), user->GetPort()); } + else + user->WriteNumeric(671, "%s :STARTTLS failure", user->nick.c_str()); } return CMD_FAILURE; |