diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-11 21:04:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-11 21:04:11 +0000 |
commit | 481bff2e2bd0bfd1ce306a2a514e63145fb63917 (patch) | |
tree | 754850ada56aabb7535b5362ef2ea02bca2a8beb /protocols/Steam/src/steam_proto.cpp | |
parent | 50ae2aaaa5c7f935eb54fbc9fade7fdbed4a4111 (diff) |
Steam:
- fixed minor issues
- added detection of playing contacts
- added reaction on adding/removing contacts (from steam app)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8961 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 02b3fd82f4..f30d47a59b 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -226,36 +226,15 @@ int CSteamProto::SetStatus(int new_status) ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
if (!Miranda_Terminated())
- {
SetAllContactsStatus(ID_STATUS_OFFLINE);
- //this->CloseAllChatSessions();
- }
-
- return 0;
}
- else
+ else if (old_status == ID_STATUS_OFFLINE)
{
- if (old_status == ID_STATUS_OFFLINE/* && !this->IsOnline()*/)
- {
- m_iStatus = ID_STATUS_CONNECTING;
- ForkThread(&CSteamProto::LogInThread, NULL);
- }
- //else
- //{
- //if (IsOnline())
- //{
- // ForkThread(&CSteamProto::SetServerStatusThread, (void*)new_status);
-
- // return 0;
- //}
-
- //ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
-
- //return 0;
- //}
- }
+ m_iStatus = ID_STATUS_CONNECTING;
+ ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
- ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
+ ForkThread(&CSteamProto::LogInThread, NULL);
+ }
return 0;
}
|