diff options
Diffstat (limited to 'protocols/Steam/src/steam_messages.cpp')
-rw-r--r-- | protocols/Steam/src/steam_messages.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/Steam/src/steam_messages.cpp b/protocols/Steam/src/steam_messages.cpp index c4d9329761..deeb610a4b 100644 --- a/protocols/Steam/src/steam_messages.cpp +++ b/protocols/Steam/src/steam_messages.cpp @@ -35,12 +35,9 @@ void CSteamProto::OnMessageSent(const HttpResponse &response, void *arg) if (node)
error = node.as_string();
- const JSONNode &time = root["utc_timestamp"];
- if (time) {
- timestamp = atol(node.as_string().c_str());
- if (timestamp > getDword(param->hContact, DB_KEY_LASTMSGTS))
- setDword(param->hContact, DB_KEY_LASTMSGTS, timestamp);
- }
+ timestamp = atol(root["utc_timestamp"].as_string().c_str());
+ if (timestamp > getDword(param->hContact, DB_KEY_LASTMSGTS))
+ setDword(param->hContact, DB_KEY_LASTMSGTS, timestamp);
}
if (mir_strcmpi(error.c_str(), "OK") != 0) {
|