]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Oops: Fix one version of overrided match() always being case sensitive..
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 23 Oct 2007 10:19:10 +0000 (10:19 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 23 Oct 2007 10:19:10 +0000 (10:19 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8310 e03df62e-2008-0410-955e-edbf42e46eb7

src/wildcard.cpp

index 4344219644b9b48beff94c2c57928cd415676135..29454108997a33430f5ae5f36702e84e64b3eab2 100644 (file)
@@ -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)