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_proto.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_proto.cpp')
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 36592a4082..778c9f95ee 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -204,7 +204,7 @@ DWORD_PTR __cdecl CSteamProto:: GetCaps(int type, MCONTACT hContact) case PFLAGNUM_4: return PF4_AVATARS | PF4_NOCUSTOMAUTH | PF4_NOAUTHDENYREASON | PF4_FORCEAUTH | PF4_FORCEADDED | PF4_IMSENDUTF | PF4_SUPPORTIDLE;// | PF4_IMSENDOFFLINE | PF4_SUPPORTTYPING; case PFLAGNUM_5: - return 0; + return PF2_SHORTAWAY | PF2_LONGAWAY | PF2_HEAVYDND | PF2_OUTTOLUNCH | PF2_FREEFORCHAT; case PFLAG_UNIQUEIDTEXT: return (DWORD_PTR)Translate("SteamID"); case PFLAG_UNIQUEIDSETTING: @@ -326,15 +326,10 @@ int CSteamProto::SetStatus(int new_status) // Routing statuses not supported by Steam switch (new_status) { - case ID_STATUS_OCCUPIED: - new_status = ID_STATUS_DND; - break; - - case ID_STATUS_ONTHEPHONE: - new_status = ID_STATUS_AWAY; + case ID_STATUS_OFFLINE: break; - case ID_STATUS_INVISIBLE: + default: new_status = ID_STATUS_ONLINE; break; } @@ -368,16 +363,6 @@ int CSteamProto::SetStatus(int new_status) //ForkThread(&CSteamProto::LogInThread, NULL); StartQueue(); } - else { - ptrA token(getStringA("TokenSecret")); - ptrA sessionId(getStringA("SessionID")); - int state = MirandaToSteamState(new_status); - - PushRequest( - new SteamWebApi::SetStatusRequest(token, sessionId, state), - &CSteamProto::OnStatusChanged, - (void *)new_status); - } return 0; } |