From 16ea608b527932e6c10add8258fca3785b4e7790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 10 Sep 2012 13:08:12 +0000 Subject: MenuItemEx: Reset logoff timestamp for online contacts git-svn-id: http://svn.miranda-ng.org/main/trunk@1561 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MenuItemEx/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MenuItemEx/src/main.cpp') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 547cfbf290..b3b06e867d 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -1182,12 +1182,12 @@ static int ContactSettingChanged( WPARAM wParam, LPARAM lParam ) if (oldStatus == ID_STATUS_OFFLINE) { - // set online timestamp for this contact, only when not set already + // set logon timestamp for this contact, only when not set already if (!DBGetContactSettingDword(hContact, lpzProto, "LogonTS", FALSE)) DBWriteContactSettingDword(hContact, lpzProto, "LogonTS", ( DWORD )time(NULL)); - // TODO: don't reset logoff timestamp? - // DBDeleteContactSetting(hContact, lpzProto, "LogoffTS"); + // reset logoff timestamp + DBDeleteContactSetting(hContact, lpzProto, "LogoffTS"); // TESTING: updating user's details if (DBGetContactSettingDword(NULL, VISPLG, "flags", vf_default) & VF_REFRESH) @@ -1199,7 +1199,7 @@ static int ContactSettingChanged( WPARAM wParam, LPARAM lParam ) } if (newStatus == ID_STATUS_OFFLINE) { - // set offline timestamp for this contact + // set logoff timestamp for this contact DBWriteContactSettingDword(hContact, lpzProto, "LogoffTS", ( DWORD )time(NULL)); // reset logon timestamp DBDeleteContactSetting(hContact, lpzProto, "LogonTS"); -- cgit v1.2.3