Mods: use case-insensitive wildcmp() for channel/host matching

Fixes #822
This commit is contained in:
J-P Nurmi
2015-02-23 22:28:05 +01:00
parent 27d78795a7
commit 539c519cce
6 changed files with 13 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ public:
bool ChannelMatches(const CString& sChan) const {
for (set<CString>::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); ++it) {
if (sChan.AsLower().WildCmp(*it)) {
if (sChan.AsLower().WildCmp(*it, CString::CaseInsensitive)) {
return true;
}
}
@@ -74,7 +74,7 @@ public:
bool HostMatches(const CString& sHostmask) {
for (set<CString>::const_iterator it = m_ssHostmasks.begin(); it != m_ssHostmasks.end(); ++it) {
if (sHostmask.WildCmp(*it)) {
if (sHostmask.WildCmp(*it, CString::CaseInsensitive)) {
return true;
}
}