summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Steam/src/steam_polling.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp
index 4e921adf2c..9b56e4787e 100644
--- a/protocols/Steam/src/steam_polling.cpp
+++ b/protocols/Steam/src/steam_polling.cpp
@@ -66,6 +66,9 @@ void CSteamProto::ParsePollData(const JSONNode &data)
if (type == "saytext" || type == "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();