diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-12-08 23:53:51 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-12-08 23:53:51 +0000 |
commit | a882547f12158c9b9e01f493d19c1d8fd5eda52b (patch) | |
tree | 3e2e9e7c2e42cf9502ce82ae2ce1c38e6718d449 /protocols/Steam/src/steam_contacts.cpp | |
parent | 97d772455be44b3693678bb5192e5c6bc777bc98 (diff) |
Steam: Revert previous commit as it was useless work >:o
git-svn-id: http://svn.miranda-ng.org/main/trunk@11292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_contacts.cpp')
-rw-r--r-- | protocols/Steam/src/steam_contacts.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp index 3bba9d6ac3..6ae9a913bf 100644 --- a/protocols/Steam/src/steam_contacts.cpp +++ b/protocols/Steam/src/steam_contacts.cpp @@ -120,24 +120,7 @@ void CSteamProto::UpdateContact(MCONTACT hContact, JSONNODE *data) WORD steamStatus = json_as_int(node); WORD status = SteamToMirandaStatus(steamStatus); if (hContact != NULL) - { - // contact status setWord(hContact, "Status", status); - } - else - { - // my status - // TODO: uncomment when invisible status is used in Steam proto - /*if (status == ID_STATUS_OFFLINE) - status = ID_STATUS_INVISIBLE;*/ - - if (status != ID_STATUS_OFFLINE) - { - int old_status = m_iStatus; - m_iStatus = m_iDesiredStatus = status; - ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); - } - } node = json_get(data, "gameid"); DWORD gameId = node ? atol(_T2A(json_as_string(node))) : 0; @@ -156,7 +139,8 @@ void CSteamProto::UpdateContact(MCONTACT hContact, JSONNODE *data) { if (hContact != NULL) db_unset(hContact, "CList", "StatusMsg"); - + + delSetting(hContact, "GameInfo"); delSetting(hContact, "GameID"); } } |