From 1ec635790f334e81a22ee2176763ee5534cfd5b4 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 26 Apr 2009 20:48:13 +0000 Subject: 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 --- src/modules/extra/m_ssl_gnutls.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3