1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 03:46:36 +02:00

Fix compile error.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2060 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2009-02-15 15:21:06 +00:00
parent b10305ef3b
commit f92bf30f15
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1372,7 +1372,7 @@ class Anope
* @param str The string to check against the pattern (e.g. foobar)
* @param case_sensitive Whether or not the match is case sensitive, default false.
*/
CoreExport static bool Anope::Match(const std::string &str, const std::string &mask, bool case_sensitive = false);
CoreExport static bool Match(const std::string &str, const std::string &mask, bool case_sensitive = false);
};
/*************************************************************************/
+2 -2
View File
@@ -75,7 +75,7 @@ static bool match_internal(const unsigned char *str, const unsigned char *mask,
return !*wild;
}
CoreExport bool Anope::Match(const std::string &str, const std::string &mask, bool case_sensitive = false)
CoreExport bool Anope::Match(const std::string &str, const std::string &mask, bool case_sensitive)
{
return match_internal(str.c_str(), mask.c_str(), case_sensitive);
return match_internal((const unsigned char *)str.c_str(), (const unsigned char *)mask.c_str(), case_sensitive);
}