diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-17 20:53:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-17 20:53:52 +0000 |
commit | f6c842738792940ed5b91a5d8977b9e8d20337c0 (patch) | |
tree | 58735945361c1fc2052e67a87f35ce72c40d681c /plugins/TabSRMM/src/chat/tools.cpp | |
parent | cf77bdeca036ce292aa334d352a194209a45cf3d (diff) |
tabSRMM highlights
git-svn-id: http://svn.miranda-ng.org/main/trunk@7698 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/tools.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat/tools.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/chat/tools.cpp b/plugins/TabSRMM/src/chat/tools.cpp index ee2b54b374..334447193a 100644 --- a/plugins/TabSRMM/src/chat/tools.cpp +++ b/plugins/TabSRMM/src/chat/tools.cpp @@ -757,3 +757,14 @@ TCHAR* GetChatLogsFilename(SESSION_INFO *si, time_t tTime) return si->pszLogFileName;
}
+
+BOOL IsHighlighted(SESSION_INFO *si, GCEVENT *gce)
+{
+ if (!g_Settings.HighlightEnabled || !g_Settings.pszHighlightWords || !gce)
+ return FALSE;
+
+ int dwMask = 0;
+ if (gce->ptszText != NULL) dwMask |= CMUCHighlight::MATCH_TEXT;
+ if (gce->ptszNick != NULL) dwMask |= CMUCHighlight::MATCH_NICKNAME;
+ return g_Settings.Highlight->match(gce, si, dwMask);
+}
|