From 32abc31869290e22292e0b051c4fafc0bb36f43f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 9 Mar 2020 04:34:11 +0000 Subject: Fix being case sensitive. --- src/modules/m_sslinfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 1b63b89cf..f0bfbb424 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -314,7 +314,8 @@ class ModuleSSLInfo { ssl_cert* cert = cmd.sslapi.GetCertificate(user); bool ok = true; - if (myclass->config->getString("requiressl") == "trusted") + const std::string requiressl = myclass->config->getString("requiressl"); + if (stdalgo::string::equalsci(requiressl, "trusted")) { ok = (cert && cert->IsCAVerified()); ServerInstance->Logs->Log("CONNECTCLASS", LOG_DEBUG, "Class requires a trusted SSL cert. Client %s one.", (ok ? "has" : "does not have")); -- cgit v1.2.3