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
+2 -2
View File
@@ -41,7 +41,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;
}
}
@@ -50,7 +50,7 @@ public:
}
bool HostMatches(const CString& sHostmask) {
return sHostmask.WildCmp(m_sHostmask);
return sHostmask.WildCmp(m_sHostmask, CString::CaseInsensitive);
}
CString GetChannels() const {