]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/wildcard.cpp
Fix m_banredirect: (hint: sizeof(f) != sizeof(*f) ;p)
[user/henk/code/inspircd.git] / 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)