From f16b4030068686b9f8bc1c4d22cd8c52b78a21d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 4 Dec 2014 14:00:12 +0000 Subject: Steam: - Save timestamp when user created his account ("MemberTS") - Save timestamp when user was removed from friends ("DeletedTS") - Save timestamp when user was added to friends ("ContactAddTime" in branch "UserInfo" - compatibility with UserInfoEx) - Properly set info about deleted contacts at login - Notify when user is deleted or added again to contacts git-svn-id: http://svn.miranda-ng.org/main/trunk@11240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_pooling.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'protocols/Steam/src/steam_pooling.cpp') diff --git a/protocols/Steam/src/steam_pooling.cpp b/protocols/Steam/src/steam_pooling.cpp index 1bcc29bbb5..bd0d2fa49e 100644 --- a/protocols/Steam/src/steam_pooling.cpp +++ b/protocols/Steam/src/steam_pooling.cpp @@ -104,33 +104,23 @@ void CSteamProto::ParsePollData(JSONNODE *data) MCONTACT hContact = FindContact(steamId); if (hContact) { - setByte(hContact, "Auth", 1); - - TCHAR message[MAX_PATH]; - mir_sntprintf( - message, MAX_PATH, - TranslateT("%s has been removed from your contact list"), - ptrT(mir_a2t(steamId))); - - ShowNotification(_T("Steam"), message); + ContactIsRemoved(hContact); } } break; case 1: - // ignored - // todo - { + {// ignored MCONTACT hContact = FindContact(steamId); if (hContact) { - setByte(hContact, "Block", 1); + ContactIsIgnored(hContact); } } break; case 2: - { // auth request + {// auth request /*MCONTACT hContact = FindContact(steamId); if (!hContact) hContact = AddContact(steamId, true);*/ -- cgit v1.2.3