summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
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
parent289ef4f5872f14c959e2d49c1e8a2e431b6bfa70 (diff)
useless data removed
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/chat.h1
-rw-r--r--plugins/TabSRMM/src/chat_window.cpp5
2 files changed, 1 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/chat.h b/plugins/TabSRMM/src/chat.h
index 8c260fc2ae..56a0b742b8 100644
--- a/plugins/TabSRMM/src/chat.h
+++ b/plugins/TabSRMM/src/chat.h
@@ -44,7 +44,6 @@ class CMUCHighlight;
struct MODULEINFO : public GCModuleInfoBase
{
DWORD idleTimeStamp;
- DWORD lastIdleCheck;
wchar_t tszIdleMsg[60];
};
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;