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:
@@ -38,11 +38,11 @@ public:
|
||||
}
|
||||
|
||||
bool IsMatch(const CString& sChan, const CString& sHost, const CString& sMessage) const {
|
||||
if (!sHost.WildCmp(m_sHostmaskWildcard))
|
||||
if (!sHost.WildCmp(m_sHostmaskWildcard, CString::CaseInsensitive))
|
||||
return false;
|
||||
if (!sChan.WildCmp(m_sChannelWildcard))
|
||||
if (!sChan.WildCmp(m_sChannelWildcard, CString::CaseInsensitive))
|
||||
return false;
|
||||
if (!sMessage.WildCmp(m_pModule->ExpandString(m_sSearchWildcard)))
|
||||
if (!sMessage.WildCmp(m_pModule->ExpandString(m_sSearchWildcard), CString::CaseInsensitive))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user