summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_account.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-04-16 21:34:54 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-04-16 21:34:54 +0000
commit609b81615bd8a2726da369574ec298f6fe853886 (patch)
treee4dd2acbda20b314ee690223903e45a54e6a547e /protocols/Steam/src/steam_account.cpp
parentbe100a792632718fea4a7293db1999ed13cee37a (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_account.cpp')
-rw-r--r--protocols/Steam/src/steam_account.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/protocols/Steam/src/steam_account.cpp b/protocols/Steam/src/steam_account.cpp
index a12ae85667..90062d7375 100644
--- a/protocols/Steam/src/steam_account.cpp
+++ b/protocols/Steam/src/steam_account.cpp
@@ -19,7 +19,7 @@ void CSteamProto::SetServerStatusThread(void *arg)
WORD status = *((WORD*)&arg);
ptrA token(getStringA("TokenSecret"));
- ptrA sessionId(getStringA("SessionID"));
+ ptrA umqId(getStringA("UMQID"));
int state = CSteamProto::MirandaToSteamState(status);
@@ -29,7 +29,7 @@ void CSteamProto::SetServerStatusThread(void *arg)
SteamWebApi::MessageApi::SendResult sendResult;
debugLogA("CSteamProto::SetServerStatusThread: call SteamWebApi::MessageApi::SendStatus");
- SteamWebApi::MessageApi::SendStatus(m_hNetlibUser, token, sessionId, state, &sendResult);
+ SteamWebApi::MessageApi::SendStatus(m_hNetlibUser, token, umqId, state, &sendResult);
if (sendResult.IsSuccess())
{
@@ -172,11 +172,12 @@ void CSteamProto::LogInThread(void* param)
return;
}
- setString("SessionID", loginResult.GetSessionId());
+ setString("UMQID", loginResult.GetUmqId());
setDword("MessageID", loginResult.GetMessageId());
// set selected status
- //CSteamProto::SetServerStatusThread((void*)m_iDesiredStatus);
+ m_iStatus = m_iDesiredStatus;
+ ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus);
// load contact list
LoadContactListThread(NULL);
@@ -192,14 +193,14 @@ void CSteamProto::LogInThread(void* param)
void CSteamProto::LogOutThread(void*)
{
ptrA token(getStringA("TokenSecret"));
- ptrA sessionId(getStringA("SessionID"));
+ ptrA umqId(getStringA("UMQID"));
while (m_bTerminated && m_hPollingThread != NULL)
Sleep(500);
debugLogA("CSteamProto::LogOutThread: call SteamWebApi::LoginApi::Logoff");
- SteamWebApi::LoginApi::Logoff(m_hNetlibUser, token, sessionId);
+ SteamWebApi::LoginApi::Logoff(m_hNetlibUser, token, umqId);
- delSetting("SessionID");
+ delSetting("UMQID");
m_bTerminated = false;
} \ No newline at end of file