summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Steam/src/steam_polling.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp
index e2b5bdd3e3..e98341b1fd 100644
--- a/protocols/Steam/src/steam_polling.cpp
+++ b/protocols/Steam/src/steam_polling.cpp
@@ -15,9 +15,6 @@ void CSteamProto::ParsePollData(const JSONNode &data)
hContact = GetContact(steamId.c_str());
if (hContact == 0)
continue;
-
- if (timestamp > getDword(hContact, DB_KEY_LASTMSGTS))
- setDword(hContact, DB_KEY_LASTMSGTS, timestamp);
}
else hContact = 0;
@@ -55,6 +52,9 @@ void CSteamProto::ParsePollData(const JSONNode &data)
if (type == "my_saytext" || type =="my_emote") {
json_string text = item["text"].as_string();
+ if (timestamp > getDword(hContact, DB_KEY_LASTMSGTS))
+ setDword(hContact, DB_KEY_LASTMSGTS, timestamp);
+
PROTORECVEVENT recv = { 0 };
recv.timestamp = timestamp;
recv.szMessage = (char*)text.c_str();