diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-06-03 17:45:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-06-03 17:45:05 +0000 |
commit | 4c533c2fd10ff3d0e40ec384f5828c71e8b0e0f8 (patch) | |
tree | 83a04a05dd66c460e72f7f12e51a9de07203ee83 /protocols/Steam/src/steam_pooling.cpp | |
parent | b7c991c686cd440cb8b81745ec587fbf29deb97d (diff) |
Steam:
- fixed message sending
- fixed auth request
git-svn-id: http://svn.miranda-ng.org/main/trunk@9406 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_pooling.cpp')
-rw-r--r-- | protocols/Steam/src/steam_pooling.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/protocols/Steam/src/steam_pooling.cpp b/protocols/Steam/src/steam_pooling.cpp index 826187c9a4..c6f7c3c747 100644 --- a/protocols/Steam/src/steam_pooling.cpp +++ b/protocols/Steam/src/steam_pooling.cpp @@ -198,16 +198,18 @@ void CSteamProto::ParsePollData(JSONNODE *data) m_iStatus = m_iDesiredStatus = status;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
}
+
+ continue;
}
- else if(!FindContact(steamId))
- {
- MCONTACT hContact = AddContact(steamId);
+
+ MCONTACT hContact = FindContact(steamId);
+ if (hContact == NULL)
+ hContact = AddContact(steamId);
- setWord(hContact, "Status", status);
+ setWord(hContact, "Status", status);
- node = json_get(item, "persona_name");
- setWString(hContact, "Nick", json_as_string(node));
- }
+ node = json_get(item, "persona_name");
+ setWString(hContact, "Nick", json_as_string(node));
// todo: find difference between state changing and info changing
}
@@ -288,7 +290,6 @@ void CSteamProto::PollingThread(void*) if (!lstrcmpi(error, L"OK"))
{
-
node = json_get(root, "messagelast");
messageId = json_as_int(node);
|