summaryrefslogtreecommitdiff
path: root/src/wildcard.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-07 18:31:57 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-07 18:31:57 +0000
commit805d47c98e48df374976972c3fcbba36fd4289f8 (patch)
treed55b8cf542010770881bef33e269f6ce62e4b394 /src/wildcard.cpp
parent6c389362435138c1523e4aedb53938100f6b4c47 (diff)
Move stuff to use ASCII map where required.
Also move this out of being a member totally, as it breaks (gah) and is already untidy.. to be revisited. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10858 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/wildcard.cpp')
-rw-r--r--src/wildcard.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp
index 9f91d9c68..d34430c02 100644
--- a/src/wildcard.cpp
+++ b/src/wildcard.cpp
@@ -73,7 +73,7 @@ static bool match_internal(const unsigned char *str, const unsigned char *mask,
CoreExport bool InspIRCd::Match(const std::string &str, const std::string &mask, unsigned const char *map)
{
if (!map)
- map = this->national_case_sensitive_map;
+ map = national_case_sensitive_map;
return match_internal((const unsigned char *)str.c_str(), (const unsigned char *)mask.c_str(), map);
}
@@ -81,7 +81,7 @@ CoreExport bool InspIRCd::Match(const std::string &str, const std::string &mask,
CoreExport bool InspIRCd::Match(const char *str, const char *mask, unsigned const char *map)
{
if (!map)
- map = this->national_case_sensitive_map;
+ map = national_case_sensitive_map;
return match_internal((const unsigned char *)str, (const unsigned char *)mask, map);
}
@@ -91,7 +91,7 @@ CoreExport bool InspIRCd::MatchCIDR(const std::string &str, const std::string &m
return true;
if (!map)
- map = this->national_case_sensitive_map;
+ map = national_case_sensitive_map;
// Fall back to regular match
return InspIRCd::Match(str, mask, map);
@@ -103,7 +103,7 @@ CoreExport bool InspIRCd::MatchCIDR(const char *str, const char *mask, unsigned
return true;
if (!map)
- map = this->national_case_sensitive_map;
+ map = national_case_sensitive_map;
// Fall back to regular match
return InspIRCd::Match(str, mask, map);