summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Dbx_sqlite/src/version.h2
-rw-r--r--protocols/Steam/src/steam_polling.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Dbx_sqlite/src/version.h b/plugins/Dbx_sqlite/src/version.h
index c62edefb90..e4eca01863 100644
--- a/plugins/Dbx_sqlite/src/version.h
+++ b/plugins/Dbx_sqlite/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 95
#define __RELEASE_NUM 13
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#include <stdver.h>
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();