Mods: use case-insensitive wildcmp() for channel/host matching
Fixes #822
This commit is contained in:
1 parent
27d78795a7
commit
539c519cce
6 files changed
+13
-13
No files matched your search
@@ -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