diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-16 21:34:54 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-16 21:34:54 +0000 |
commit | 609b81615bd8a2726da369574ec298f6fe853886 (patch) | |
tree | e4dd2acbda20b314ee690223903e45a54e6a547e /protocols/Steam/src/steam_thread.cpp | |
parent | be100a792632718fea4a7293db1999ed13cee37a (diff) |
Steam: work commit
- fixed long connecting in one case
- one more peace of contact management
- minor changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@8987 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_thread.cpp')
-rw-r--r-- | protocols/Steam/src/steam_thread.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/protocols/Steam/src/steam_thread.cpp b/protocols/Steam/src/steam_thread.cpp index e95af473dd..a9deac4e74 100644 --- a/protocols/Steam/src/steam_thread.cpp +++ b/protocols/Steam/src/steam_thread.cpp @@ -1,9 +1,9 @@ #include "common.h"
-void CSteamProto::PollServer(const char *token, const char *sessionId, UINT32 messageId, SteamWebApi::PollApi::PollResult *pollResult)
+void CSteamProto::PollServer(const char *token, const char *umqId, UINT32 messageId, SteamWebApi::PollApi::PollResult *pollResult)
{
debugLogA("CSteamProto::PollServer: call SteamWebApi::PollApi::Poll");
- SteamWebApi::PollApi::Poll(m_hNetlibUser, token, sessionId, messageId, pollResult);
+ SteamWebApi::PollApi::Poll(m_hNetlibUser, token, umqId, messageId, pollResult);
if (!pollResult->IsSuccess())
return;
@@ -113,11 +113,14 @@ void CSteamProto::PollServer(const char *token, const char *sessionId, UINT32 me SteamWebApi::PollApi::Relationship *crs = (SteamWebApi::PollApi::Relationship*)item;
const char *steamId = crs->GetSteamId();
+
MCONTACT hContact = FindContact(steamId);
if (!hContact)
hContact = AddContact(steamId);
-
+ setByte(hContact, "Auth", 1);
+ setByte(hContact, "Grant", 1);
+ RaiseAuthRequestThread((void*)hContact);
}
break;
}
@@ -132,13 +135,13 @@ void CSteamProto::PollingThread(void*) debugLogA("CSteamProto::PollingThread: entering");
ptrA token(getStringA("TokenSecret"));
- ptrA sessionId(getStringA("SessionID"));
+ ptrA umqId(getStringA("UMQID"));
UINT32 messageId = getDword("MessageID", 0);
SteamWebApi::PollApi::PollResult pollResult;
while (!m_bTerminated)
{
- PollServer(token, sessionId, messageId, &pollResult);
+ PollServer(token, umqId, messageId, &pollResult);
if (pollResult.IsNeedRelogin())
{
|