]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sslinfo.cpp
Add SSLIOHook::IsSSL() to determine whether a socket is using SSL or not
[user/henk/code/inspircd.git] / src / modules / m_sslinfo.cpp
index ac02908c4e5d887e3bb7907a0da4700dc138beee..6a29d3bde913a731f97ee7c348a43b28d2924cd3 100644 (file)
@@ -162,10 +162,10 @@ class ModuleSSLInfo : public Module, public Whois::EventListener
                ssl_cert* cert = cmd.CertExt.get(whois.GetTarget());
                if (cert)
                {
-                       whois.SendLine(671, ":is using a secure connection");
+                       whois.SendLine(671, "is using a secure connection");
                        bool operonlyfp = ServerInstance->Config->ConfValue("sslinfo")->getBool("operonly");
                        if ((!operonlyfp || whois.IsSelfWhois() || whois.GetSource()->IsOper()) && !cert->fingerprint.empty())
-                               whois.SendLine(276, ":has client certificate fingerprint %s", cert->fingerprint.c_str());
+                               whois.SendLine(276, InspIRCd::Format("has client certificate fingerprint %s", cert->fingerprint.c_str()));
                }
        }