From a882547f12158c9b9e01f493d19c1d8fd5eda52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 8 Dec 2014 23:53:51 +0000 Subject: 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 --- protocols/Steam/src/steam_proto.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'protocols/Steam/src/steam_proto.cpp') 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; } -- cgit v1.2.3