From ecdf64dea8bee4a65ffc5c8cacd97fa51e876744 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 4 Apr 2026 00:17:14 +0100 Subject: Fix the verbose form of SSLINFO. --- modules/sslinfo.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'modules/sslinfo.cpp') diff --git a/modules/sslinfo.cpp b/modules/sslinfo.cpp index ea435d332..3f6e6d5aa 100644 --- a/modules/sslinfo.cpp +++ b/modules/sslinfo.cpp @@ -232,15 +232,18 @@ private: { source->WriteNotice("*** {} is not connected using TLS.", target->nick); } - else if (cert->HasError()) - { - source->WriteNotice("*** {} is connected using TLS but has not specified a valid client certificate ({}).", - target->nick, cert->GetError()); - } else if (!verbose) { - source->WriteNotice("*** {} is connected using TLS with a valid client certificate ({}).", - target->nick, cert->GetFingerprint()); + if (cert->HasError()) + { + source->WriteNotice("*** {} is connected using TLS but has not specified a valid client certificate ({}).", + target->nick, cert->GetError()); + } + else + { + source->WriteNotice("*** {} is connected using TLS with a valid client certificate ({}).", + target->nick, cert->GetFingerprint()); + } } else { -- cgit v1.3.1-10-gc9f91