From 783048c6dca6fb6f612d0f613b875d4ff1a2eda3 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Dec 2008 18:32:08 +0000 Subject: Convert necessary match calls to use ASCII casemap. 1.2 may now be made casemap-aware via a module setting national_case_sensitive_map to their own table, and resetting to the RFC table on unload. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10859 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sqloper.cpp | 2 +- src/modules/extra/m_ssl_oper_cert.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp index d937c4336..3dc175f1f 100644 --- a/src/modules/extra/m_sqloper.cpp +++ b/src/modules/extra/m_sqloper.cpp @@ -80,7 +80,7 @@ public: std::string xhost; while (hl >> xhost) { - if (InspIRCd::Match(host, xhost, NULL) || InspIRCd::MatchCIDR(ip, xhost, NULL)) + if (InspIRCd::Match(host, xhost, ascii_case_insensitive_map) || InspIRCd::MatchCIDR(ip, xhost, ascii_case_insensitive_map)) { return true; } diff --git a/src/modules/extra/m_ssl_oper_cert.cpp b/src/modules/extra/m_ssl_oper_cert.cpp index fb7162a1f..9ef35f7a3 100644 --- a/src/modules/extra/m_ssl_oper_cert.cpp +++ b/src/modules/extra/m_ssl_oper_cert.cpp @@ -99,7 +99,7 @@ class ModuleOperSSLCert : public Module std::string xhost; while (hl >> xhost) { - if (InspIRCd::Match(host, xhost) || InspIRCd::MatchCIDR(ip, xhost)) + if (InspIRCd::Match(host, xhost, ascii_case_insensitive_map) || InspIRCd::MatchCIDR(ip, xhost, ascii_case_insensitive_map)) { return true; } -- cgit v1.2.3