summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_window.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-03 18:37:47 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-05-03 18:37:47 +0200
commit3eb5675465d492c5525de1fbe05d120aa18a08df (patch)
tree51a94185110e32fa7cd2ea830531ba95c7113445 /plugins/TabSRMM/src/chat_window.cpp
parent289ef4f5872f14c959e2d49c1e8a2e431b6bfa70 (diff)
useless data removed
Diffstat (limited to 'plugins/TabSRMM/src/chat_window.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_window.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp
index 31abeef29e..bf86bd245e 100644
--- a/plugins/TabSRMM/src/chat_window.cpp
+++ b/plugins/TabSRMM/src/chat_window.cpp
@@ -660,7 +660,6 @@ void CChatRoomDlg::onClick_OK(CCtrlButton*)
fSound = false;
Chat_DoEventHook(m_si, GC_USER_MESSAGE, nullptr, ptszText, 0);
mi->idleTimeStamp = time(0);
- mi->lastIdleCheck = 0;
UpdateStatusBar();
if (m_pContainer)
if (fSound && !nen_options.iNoSounds && !(m_pContainer->dwFlags & CNT_NOSOUND))
@@ -895,9 +894,7 @@ void CChatRoomDlg::UpdateStatusBar()
if (m_pPanel.isActive()) {
time_t now = time(0);
DWORD diff = (now - mi->idleTimeStamp) / 60;
-
- if ((diff >= 1 && diff != mi->lastIdleCheck)) {
- mi->lastIdleCheck = diff;
+ if (diff >= 1) {
if (diff > 59) {
DWORD hours = diff / 60;
DWORD minutes = diff % 60;