summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_pooling.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-12-04 14:00:12 +0000
committerRobert Pösel <robyer@seznam.cz>2014-12-04 14:00:12 +0000
commitf16b4030068686b9f8bc1c4d22cd8c52b78a21d0 (patch)
tree020e2683044a23edd2eb0ef7db195c5220d143f9 /protocols/Steam/src/steam_pooling.cpp
parent2eaa3458b74ffdae9c91b4eb6fe84f8145af3fa1 (diff)
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
Diffstat (limited to 'protocols/Steam/src/steam_pooling.cpp')
-rw-r--r--protocols/Steam/src/steam_pooling.cpp18
1 files changed, 4 insertions, 14 deletions
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);*/