summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-10-28 13:17:32 +0000
committerPeter Powell <petpow@saberuk.com>2019-11-03 19:05:52 +0000
commit78a72b90b0213f774d3a65de093c9b61f2abe210 (patch)
tree5c284d9190bde56965719ef6c321984c7e618c88 /src/modules/extra
parentf28161a652482717c57ecf7e2696c63833db6975 (diff)
Use case insensitive comparisons when checking for SSL rehashes.
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
-rw-r--r--src/modules/extra/m_ssl_mbedtls.cpp2
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 80c076148..a3690faae 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -1359,7 +1359,7 @@ class ModuleSSLGnuTLS : public Module
void OnModuleRehash(User* user, const std::string &param) CXX11_OVERRIDE
{
- if(param != "ssl")
+ if (!irc::equals(param, "ssl"))
return;
try
diff --git a/src/modules/extra/m_ssl_mbedtls.cpp b/src/modules/extra/m_ssl_mbedtls.cpp
index c4c1906a1..5c7bcf9fa 100644
--- a/src/modules/extra/m_ssl_mbedtls.cpp
+++ b/src/modules/extra/m_ssl_mbedtls.cpp
@@ -926,7 +926,7 @@ class ModuleSSLmbedTLS : public Module
void OnModuleRehash(User* user, const std::string &param) CXX11_OVERRIDE
{
- if (param != "ssl")
+ if (!irc::equals(param, "ssl"))
return;
try
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 221a3076a..08316f196 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -1049,7 +1049,7 @@ class ModuleSSLOpenSSL : public Module
void OnModuleRehash(User* user, const std::string &param) CXX11_OVERRIDE
{
- if (param != "ssl")
+ if (!irc::equals(param, "ssl"))
return;
try