From 3eb5675465d492c5525de1fbe05d120aa18a08df Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 3 May 2018 18:37:47 +0200 Subject: useless data removed --- plugins/TabSRMM/src/chat_window.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src/chat_window.cpp') 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; -- cgit v1.2.3