Moved CUtils::wildcmp() into CString class

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@251 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-05-08 07:51:46 +00:00
parent 1c5981ee6d
commit 0823b27f37
7 changed files with 10 additions and 50 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ public:
for (unsigned int a = 0; a < m_vsSources.size(); a++) {
const CWatchSource& WatchSource = m_vsSources[a];
if (CUtils::wildcmp(Lower(WatchSource.GetSource()), Lower(sSource))) {
if (sSource.AsLower().WildCmp(Lower(WatchSource.GetSource()))) {
if (WatchSource.IsNegated()) {
return false;
} else {
@@ -77,7 +77,7 @@ public:
}
}
return (bGoodSource && CUtils::wildcmp(Lower(m_sHostMask), Lower(Nick.GetHostMask())) && CUtils::wildcmp(Lower(m_sPattern), Lower(sText)));
return (bGoodSource && Nick.GetHostMask().AsLower().WildCmp(Lower(m_sHostMask))) && sText.AsLower().WildCmp(Lower(m_sPattern));
}
bool operator ==(const CWatchEntry& WatchEntry) {