diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-20 17:32:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-20 17:32:09 +0000 |
commit | 632e68f3532a263b87f49430ea0c1e2d6e6e0a53 (patch) | |
tree | 2b1c3e059aad4e365bd2696deca458bb257dd6ab /plugins/TabSRMM | |
parent | d1be65271162758adb53ec295e328719d046bb41 (diff) |
final (hopefully) fix for highlighting in tabSRMM
git-svn-id: http://svn.miranda-ng.org/main/trunk@7797 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat/muchighlight.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat/muchighlight.cpp b/plugins/TabSRMM/src/chat/muchighlight.cpp index e0fd2a90c7..3b62c76969 100644 --- a/plugins/TabSRMM/src/chat/muchighlight.cpp +++ b/plugins/TabSRMM/src/chat/muchighlight.cpp @@ -158,7 +158,7 @@ int CMUCHighlight::match(const GCEVENT *pgce, const SESSION_INFO *psi, DWORD dwF p1 = 0;
for (UINT i = 0; i < m_iTextPatterns && !result; i++)
- result = wildcmpt(m_TextPatterns[i], p) ? MATCH_TEXT : 0;
+ result = wildcmpt(p, m_TextPatterns[i]) ? MATCH_TEXT : 0;
if (p1) {
*p1 = ' ';
@@ -176,9 +176,9 @@ skip_textpatterns: if ((m_dwFlags & MATCH_NICKNAME) && (dwFlags & MATCH_NICKNAME) && pgce->ptszNick && m_iNickPatterns > 0) {
for (UINT i = 0; i < m_iNickPatterns && !nResult; i++) {
if (pgce->ptszNick)
- nResult = wildcmpt(m_NickPatterns[i], pgce->ptszNick) ? MATCH_NICKNAME : 0;
+ nResult = wildcmpt(pgce->ptszNick, m_NickPatterns[i]) ? MATCH_NICKNAME : 0;
if ((m_dwFlags & MATCH_UIN) && pgce->ptszUserInfo)
- nResult = wildcmpt(m_NickPatterns[i], pgce->ptszUserInfo) ? MATCH_NICKNAME : 0;
+ nResult = wildcmpt(pgce->ptszUserInfo, m_NickPatterns[i]) ? MATCH_NICKNAME : 0;
}
}
|