diff options
author | Sadie Powell <sadie@witchery.services> | 2020-04-21 03:02:05 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-04-21 11:44:57 +0100 |
commit | 96e3b3c9bc377f7f73e7bf7c49a692951c3246fb (patch) | |
tree | a3dae4819c599c73bbcee075964b41f602cc4aeb /src | |
parent | 0ffc8c1b136ddf6f397b53bf3f860f6ab86969fe (diff) |
Improve the output given by the SSLINFO command.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_sslinfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 477785bea..3c3a217f1 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -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 { |