X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fwildcard.cpp;h=eb9151293d8e185747de8ba4a3caaa729a5b1588;hb=68211809ee3111bdc9609fbd46dc3c875fbb5ea6;hp=9f91d9c6831a99a79b5e49311921f88c2225a1d9;hpb=6c389362435138c1523e4aedb53938100f6b4c47;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/wildcard.cpp b/src/wildcard.cpp index 9f91d9c68..eb9151293 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -1,16 +1,24 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * Copyright (C) 2008 Robin Burchell + * Copyright (C) 2003, 2006-2008 Craig Edwards + * Copyright (C) 2007-2008 Dennis Friis * - * This program is free but copyrighted software; see - * the file COPYING for details. + * This file is part of InspIRCd. InspIRCd is free software: you can + * redistribute it and/or modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation, version 2. * - * --------------------------------------------------- + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + /* $Core */ #include "inspircd.h" @@ -73,7 +81,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 +89,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 +99,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 +111,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);