From c9265783b1bf4a9cea1fd63e633ced6e66a154fc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Dec 2017 15:24:14 +0300 Subject: Miranda idle code cleaning --- protocols/Steam/src/steam_events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Steam') diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index 3697689ca4..ef2d59ed40 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -65,8 +65,8 @@ int CSteamProto::OnIdleChanged(WPARAM, LPARAM lParam) if (idle) { // User started being idle - MIRANDA_IDLE_INFO mii = { sizeof(mii) }; - CallService(MS_IDLE_GETIDLEINFO, 0, (LPARAM)&mii); + MIRANDA_IDLE_INFO mii; + Idle_GetInfo(mii); // Compute time when user really became idle m_idleTS = time(nullptr) - mii.idleTime * 60; -- cgit v1.2.3