mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +02:00
Mods: use case-insensitive wildcmp() for channel/host matching
Fixes #822
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user