summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;