summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Steam/src/steam_login.cpp9
-rw-r--r--protocols/Steam/src/steam_messages.cpp2
2 files changed, 7 insertions, 4 deletions
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);