summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_messages.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-12-22 19:00:27 +0000
committerRobert Pösel <robyer@seznam.cz>2015-12-22 19:00:27 +0000
commitac8bed8f05473bf773b9729d5acef4b49dde3682 (patch)
treee4acef721054ef0fa89676061147e2bba9b6baf1 /protocols/Steam/src/steam_messages.cpp
parentf5e9122078e308f4b9dfa70b4f160056fae95c19 (diff)
Steam: Various fixes to loading offline messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@15933 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_messages.cpp')
-rw-r--r--protocols/Steam/src/steam_messages.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_messages.cpp b/protocols/Steam/src/steam_messages.cpp
index c2172bb380..56cb5f2f62 100644
--- a/protocols/Steam/src/steam_messages.cpp
+++ b/protocols/Steam/src/steam_messages.cpp
@@ -51,7 +51,11 @@ void CSteamProto::OnMessageSent(const HttpResponse *response, void *arg)
node = json_get(root, "utc_timestamp");
if (node)
+ {
timestamp = atol(ptrA(mir_t2a(ptrT(json_as_string(node)))));
+ if (timestamp > getDword("LastMessageTS", 0))
+ setDword("LastMessageTS", timestamp);
+ }
}
if (mir_tstrcmpi(error, _T("OK")) != 0)