From 7dacd72d5ac2d237e31714f1e9993d3a8130a8a4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Dec 2024 20:12:17 +0300 Subject: more logs --- protocols/Steam/src/steam_login.cpp | 9 +++++---- protocols/Steam/src/steam_messages.cpp | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 8749e6ca09..9b57ec0c4e 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -194,12 +194,13 @@ void CSteamProto::SendConfirmationCode(bool isEmail, const char *pszCode) WSSendService(UpdateAuthSessionWithSteamGuardCode, request, true); } -void CSteamProto::OnGotConfirmationCode(const CAuthenticationUpdateAuthSessionWithSteamGuardCodeResponse&, const CMsgProtoBufHeader &hdr) +void CSteamProto::OnGotConfirmationCode(const CAuthenticationUpdateAuthSessionWithSteamGuardCodeResponse &, const CMsgProtoBufHeader &hdr) { - if (hdr.failed()) + if (hdr.failed()) { + debugLogA("2fa code failed with error code %d", hdr.eresult); Logout(); - else - SendPollRequest(); + } + else SendPollRequest(); } ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/protocols/Steam/src/steam_messages.cpp b/protocols/Steam/src/steam_messages.cpp index 25ccc07800..47a7504088 100644 --- a/protocols/Steam/src/steam_messages.cpp +++ b/protocols/Steam/src/steam_messages.cpp @@ -59,6 +59,8 @@ void CSteamProto::OnGotIncomingMessage(const CFriendMessagesIncomingMessageNotif DB::EventInfo dbei; dbei.flags = DBEF_UTF; + if (reply.has_local_echo && reply.local_echo) + dbei.flags |= DBEF_SENT; dbei.cbBlob = (int)mir_strlen(reply.message); dbei.pBlob = reply.message; dbei.timestamp = reply.has_rtime32_server_timestamp ? reply.rtime32_server_timestamp : time(0); -- cgit v1.2.3