summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgutils.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-01 05:46:36 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-01 05:46:36 +0000
commit84dedc9d7c81e97c9fc07f0ca97e34300b706e19 (patch)
tree80d5a1f424830a2b84340b54524eb7e2138cebb8 /plugins/TabSRMM/src/msgdlgutils.cpp
parentdf60e52a47f80d89de55affae33d93f79e077885 (diff)
common options for all logs moved to always visible settings
git-svn-id: http://svn.miranda-ng.org/main/trunk@3383 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index 918fb3afde..3b394d5975 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -310,7 +310,7 @@ void TSAPI WriteStatsOnClose(TWindowData *dat)
return;
- if (dat->hContact != 0 &&(PluginConfig.m_LogStatusChanges != 0) && dat->dwFlags & MWF_LOG_STATUSCHANGES) {
+ if (dat->hContact != 0 &&(PluginConfig.m_LogStatusChanges != 0) && M->GetByte(dat->hContact, "logstatuschanges", 0)) {
mir_snprintf(buffer, sizeof(buffer), "Session close - active for: %d:%02d:%02d, Sent: %d (%d), Rcvd: %d (%d)", now / 3600, now / 60, now % 60, dat->stats.iSent, dat->stats.iSentBytes, dat->stats.iReceived, dat->stats.iReceivedBytes);
dbei.cbSize = sizeof(dbei);
dbei.pBlob = (PBYTE) buffer;
@@ -472,7 +472,7 @@ int TSAPI MsgWindowMenuHandler(TWindowData *dat, int selection, int menuId)
} else if (menuId == MENU_LOGMENU) {
int iLocalTime = 0;
int iRtl = (PluginConfig.m_RTLDefault == 0 ? M->GetByte(dat->hContact, "RTL", 0) : M->GetByte(dat->hContact, "RTL", 1));
- int iLogStatus = (PluginConfig.m_LogStatusChanges != 0) && dat->dwFlags & MWF_LOG_STATUSCHANGES;
+ int iLogStatus = (PluginConfig.m_LogStatusChanges != 0) && M->GetByte(dat->hContact, "logstatuschanges", 0);
DWORD dwOldFlags = dat->dwFlags;