diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-30 22:06:05 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-30 22:06:05 +0300 |
commit | 0106b105c7ac842eec10c5683be41cb50fd2e26c (patch) | |
tree | 062f27951606187a00b252784ebd0f39ce7e12b1 /plugins/TabSRMM/src/chat_tools.cpp | |
parent | 357540d5d8f0e67a2b3efdef7bc40c8db91fccf8 (diff) |
fix for #3471 applied to StdMsg & Scriver
Diffstat (limited to 'plugins/TabSRMM/src/chat_tools.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_tools.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index 7ad4525575..49063bf0a4 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -352,48 +352,6 @@ BOOL DoSoundsFlashPopupTrayStuff(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight }
/////////////////////////////////////////////////////////////////////////////////////////
-// set all filters and notification config for a session
-// uses per channel mask + filterbits, default config as backup
-
-void Chat_SetFilters(SESSION_INFO *si)
-{
- bool bEnabled = db_get_b(si->hContact, CHAT_MODULE, "FilterEnabled") != 0;
-
- CMsgDialog *pDlg = si->pDlg;
- if (pDlg) {
- uint32_t dwFlags = Chat::iFilterFlags;
- uint32_t dwFlags_local = db_get_dw(si->hContact, CHAT_MODULE, "FilterFlags", GC_EVENT_ALL);
- uint32_t dwMask = (bEnabled) ? db_get_dw(si->hContact, CHAT_MODULE, "FilterMask") : 0;
-
- for (int i = 0; i < 32; i++) {
- uint32_t dwBit = 1 << i;
- if (dwMask & dwBit)
- dwFlags = (dwFlags_local & dwBit) ? dwFlags | dwBit : dwFlags & ~dwBit;
- }
-
- pDlg->m_iLogFilterFlags = dwFlags;
- }
-
- uint32_t dwFlags_local = db_get_dw(si->hContact, CHAT_MODULE, "PopupFlags", GC_EVENT_HIGHLIGHT);
- uint32_t dwMask = (bEnabled) ? db_get_dw(si->hContact, CHAT_MODULE, "PopupMask", 0) : 0;
-
- si->iPopupFlags = Chat::iPopupFlags;
- for (int i = 0; i < 32; i++) {
- uint32_t dwBit = 1 << i;
- if (dwMask & dwBit)
- si->iPopupFlags = (dwFlags_local & dwBit) ? si->iPopupFlags | dwBit : si->iPopupFlags & ~dwBit;
- }
-
- dwFlags_local = db_get_dw(si->hContact, CHAT_MODULE, "TrayIconFlags", GC_EVENT_HIGHLIGHT);
- dwMask = (bEnabled) ? db_get_dw(si->hContact, CHAT_MODULE, "TrayIconMask", 0) : 0;
-
- si->iTrayFlags = Chat::iTrayIconFlags;
- for (int i = 0; i < 32; i++) {
- uint32_t dwBit = 1 << i;
- if (dwMask & dwBit)
- si->iTrayFlags = (dwFlags_local & dwBit) ? si->iTrayFlags | dwBit : si->iTrayFlags & ~dwBit;
- }
-}
char GetIndicator(SESSION_INFO *si, LPCTSTR ptszNick, int *iNickIndex)
{
|