From: w00t Date: Tue, 23 Oct 2007 10:19:10 +0000 (+0000) Subject: Oops: Fix one version of overrided match() always being case sensitive.. X-Git-Tag: v2.0.23~4384 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=2e27c8a945e73d0f128d0f8677a7b0390e586ff1;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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)