summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msglog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-10-29 19:17:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-10-29 19:17:58 +0300
commit5178dcc3862b9dca2a59f3824a3dab74b217f3ba (patch)
tree56d29c3074cee86036c43771a8d4d4e4eecd14ed /plugins/TabSRMM/src/msglog.cpp
parent08d4acbb33f69c9bb0dcb4255785367f631c0e95 (diff)
two more flags removed
Diffstat (limited to 'plugins/TabSRMM/src/msglog.cpp')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index 20df0dfbe8..bb4aefcfae 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -487,19 +487,21 @@ static char* Template_CreateRTFFromDbEvent(CMsgDialog *dat, MCONTACT hContact, M
g_groupBreak = TRUE;
- if (dwEffectiveFlags & MWF_DIVIDERWANTED) {
+ if (dat->m_bDividerWanted) {
static char szStyle_div[128] = "\0";
if (szStyle_div[0] == 0)
mir_snprintf(szStyle_div, "\\f%u\\cf%u\\ul0\\b%d\\i%d\\fs%u", H_MSGFONTID_DIVIDERS, H_MSGFONTID_DIVIDERS, 0, 0, 5);
str.AppendFormat("\\sl-1\\slmult0\\highlight%d\\cf%d\\-\\par\\sl0", H_MSGFONTID_DIVIDERS, H_MSGFONTID_DIVIDERS);
- dat->m_dwFlags &= ~MWF_DIVIDERWANTED;
+ dat->m_bDividerWanted = false;
}
+
if (dwEffectiveFlags & MWF_LOG_GROUPMODE && ((dbei.flags & (DBEF_SENT | DBEF_READ | DBEF_RTL)) == LOWORD(dat->m_iLastEventType)) && dbei.eventType == EVENTTYPE_MESSAGE && HIWORD(dat->m_iLastEventType) == EVENTTYPE_MESSAGE && (dbei.timestamp - dat->m_lastEventTime) < 86400) {
g_groupBreak = FALSE;
if ((time_t)dbei.timestamp > today && dat->m_lastEventTime < today)
g_groupBreak = TRUE;
}
+
if (!streamData->isEmpty && g_groupBreak && (dwEffectiveFlags & MWF_LOG_GRID))
str.AppendFormat("\\sl-1\\slmult0\\highlight%d\\cf%d\\-\\par\\sl0", MSGDLGFONTCOUNT + 4, MSGDLGFONTCOUNT + 4);