From 2e27c8a945e73d0f128d0f8677a7b0390e586ff1 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 23 Oct 2007 10:19:10 +0000 Subject: [PATCH] Oops: Fix one version of overrided match() always being case sensitive.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8310 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/wildcard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wildcard.cpp b/src/wildcard.cpp index 434421964..294541089 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -139,7 +139,8 @@ CoreExport bool match(bool case_sensitive, const char *str, const char *mask, bo { if (use_cidr_match && MatchCIDR(str, mask, true)) return true; - return csmatch(str, mask); + + return case_sensitive ? csmatch(str, mask) : match(str, mask); } CoreExport bool match(bool case_sensitive, const char *str, const char *mask) -- 2.39.2