diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-13 20:27:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-13 20:27:43 +0300 |
commit | 4770a5e9184ded282139e66782afdd6d04010ee5 (patch) | |
tree | 685c8ec059777d343b14812dd6bb748422ed2ee8 /plugins/TabSRMM/src/chat/muchighlight.cpp | |
parent | bc382bfeb00236e2dbbb143cfe35dd3716a2f7e2 (diff) |
common chat code moved to the core
Diffstat (limited to 'plugins/TabSRMM/src/chat/muchighlight.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat/muchighlight.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/chat/muchighlight.cpp b/plugins/TabSRMM/src/chat/muchighlight.cpp index 441183f454..9bba67c75a 100644 --- a/plugins/TabSRMM/src/chat/muchighlight.cpp +++ b/plugins/TabSRMM/src/chat/muchighlight.cpp @@ -110,18 +110,18 @@ void CMUCHighlight::tokenize(wchar_t *tszString, wchar_t**& patterns, UINT& nr) }
}
-int CMUCHighlight::match(const GCEVENT *pgce, const SESSION_INFO *psi, DWORD dwFlags)
+bool CMUCHighlight::match(const GCEVENT *pgce, const SESSION_INFO *psi, DWORD dwFlags)
{
int result = 0, nResult = 0;
if (pgce == 0 || m_Valid == false)
- return 0;
+ return false;
if ((m_dwFlags & MATCH_TEXT) && (dwFlags & MATCH_TEXT) && (m_fHighlightMe || m_iTextPatterns > 0) && psi != 0) {
wchar_t *p = pci->RemoveFormatting(pgce->ptszText);
p = NEWWSTR_ALLOCA(p);
if (p == NULL)
- return 0;
+ return false;
CharLower(p);
wchar_t *tszMe = ((psi && psi->pMe) ? NEWWSTR_ALLOCA(psi->pMe->pszNick) : 0);
@@ -173,7 +173,7 @@ skip_textpatterns: }
}
- return(result | nResult);
+ return result || nResult;
}
/**
|