diff options
| author | 2026-04-04 00:17:14 +0100 | |
|---|---|---|
| committer | 2026-04-04 00:21:00 +0100 | |
| commit | ecdf64dea8bee4a65ffc5c8cacd97fa51e876744 (patch) | |
| tree | c2a9fa97805e2186f9b01b8c8af9fe72222633cb /modules/sslinfo.cpp | |
| parent | Fix sslinfo compatibility with older versions of InspIRCd. (diff) | |
Fix the verbose form of SSLINFO.
Diffstat (limited to 'modules/sslinfo.cpp')
| -rw-r--r-- | modules/sslinfo.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
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 { |
