summaryrefslogtreecommitdiff
path: root/src/wildcard.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 10:19:10 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 10:19:10 +0000
commit2e27c8a945e73d0f128d0f8677a7b0390e586ff1 (patch)
tree3eb476a5c9de0f4b0f5a76ba6ba17727aa241784 /src/wildcard.cpp
parentafdbc67a333f4bc8d37cf9ad1e463372dde14e42 (diff)
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
Diffstat (limited to 'src/wildcard.cpp')
-rw-r--r--src/wildcard.cpp3
1 files changed, 2 insertions, 1 deletions
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)