]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/wildcard.cpp
Remove check that very rarely equates to true
[user/henk/code/inspircd.git] / src / wildcard.cpp
index aa9f52102d66e9600d0fcfa1371fe68d62c86647..e626f2aa287a454edf422738ee3cce684a26e254 100644 (file)
@@ -83,3 +83,10 @@ bool match(const char *str, const char *mask)
        return !*wild;
 }
 
+/* Overloaded function that has the option of using cidr */
+bool match(const char *str, const char *mask, bool use_cidr_match)
+{
+       if (use_cidr_match && MatchCIDR(str, mask, true))
+               return true;
+       return match(str, mask);
+}