]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Improve the output given by the SSLINFO command.
authorSadie Powell <sadie@witchery.services>
Tue, 21 Apr 2020 02:02:05 +0000 (03:02 +0100)
committerSadie Powell <sadie@witchery.services>
Tue, 21 Apr 2020 10:44:57 +0000 (11:44 +0100)
src/modules/m_sslinfo.cpp

index 477785bea62d8b1f01963a944cb296f86485741b..3c3a217f1bdb08321d03671f07f511c644133b08 100644 (file)
@@ -176,11 +176,12 @@ class CommandSSLInfo : public Command
                ssl_cert* cert = sslapi.GetCertificate(target);
                if (!cert)
                {
-                       user->WriteNotice("*** No TLS (SSL) client certificate for this user");
+                       user->WriteNotice(InspIRCd::Format("*** %s is not connected using TLS (SSL).", target->nick.c_str()));
                }
                else if (cert->GetError().length())
                {
-                       user->WriteNotice("*** No TLS (SSL) client certificate information for this user (" + cert->GetError() + ").");
+                       user->WriteNotice(InspIRCd::Format("*** %s is connected using TLS (SSL) but has not specified a valid client certificate (%s).",
+                               target->nick.c_str(), cert->GetError().c_str()));
                }
                else
                {