summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wildcard.h6
-rw-r--r--src/wildcard.cpp6
2 files changed, 10 insertions, 2 deletions
diff --git a/include/wildcard.h b/include/wildcard.h
index 4bea2ff02..90660c6ef 100644
--- a/include/wildcard.h
+++ b/include/wildcard.h
@@ -13,5 +13,7 @@
#include "inspircd_config.h"
-bool match(const char *str, const char *mask, bool use_cidr_match = false);
-bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr_match = false);
+bool match(const char *str, const char *mask);
+bool match(const char *str, const char *mask, bool use_cidr_match);
+bool match(bool case_sensitive, const char *str, const char *mask);
+bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr_match);
diff --git a/src/wildcard.cpp b/src/wildcard.cpp
index 2243bc882..f888b68cf 100644
--- a/src/wildcard.cpp
+++ b/src/wildcard.cpp
@@ -140,3 +140,9 @@ bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr
return true;
return csmatch(str, mask);
}
+
+bool match(bool case_sensitive, const char *str, const char *mask)
+{
+ return case_sensitive ? csmatch(str, mask) : match(str, mask);
+}
+