diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-26 20:48:13 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-26 20:48:13 +0000 |
commit | 1ec635790f334e81a22ee2176763ee5534cfd5b4 (patch) | |
tree | 43159dcabb6b7890f5a32b2e3cf219962901e9d7 /src/modules | |
parent | 8a329816094b08963bf1244c2ce85307ce54fcdb (diff) |
Correct 005 output of m_ssl_gnutls when used for STARTTLS with no client SSL ports configured
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11332 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 64f30eb2d..1372fb2df 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -333,7 +333,9 @@ class ModuleSSLGnuTLS : public Module virtual void On005Numeric(std::string &output) { - output.append(" SSL=" + sslports); + if (!sslports.empty()) + output.append(" SSL=" + sslports); + output.append(" STARTTLS"); } virtual void OnHookUserIO(User* user, const std::string &targetip) |