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