]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/wildcard.cpp
Update m_cloaking to use free-form keys instead of weakening the hash IV
[user/henk/code/inspircd.git] / src / wildcard.cpp
index 9f91d9c6831a99a79b5e49311921f88c2225a1d9..161bb81a6c3df0964555aab26203ea3e3bf5e658 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -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_insensitive_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_insensitive_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_insensitive_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_insensitive_map;
 
        // Fall back to regular match
        return InspIRCd::Match(str, mask, map);