From aa6b2f434c204d6da1906f381c418bd8f0bca163 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 24 Oct 2015 18:54:18 +0000 Subject: Steam: - remove custom db event adding - add charset utf-8 to some of requests git-svn-id: http://svn.miranda-ng.org/main/trunk@15607 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_polling.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'protocols/Steam/src/steam_polling.cpp') diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index 975c008e77..d353ffaccb 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -32,16 +32,17 @@ void CSteamProto::ParsePollData(JSONNode *data) ptrT text(json_as_string(node)); T2Utf szMessage(text); + PROTORECVEVENT recv = { 0 }; + recv.timestamp = timestamp; + recv.szMessage = szMessage; if (_tcsstr(type, _T("my_")) == NULL) { - PROTORECVEVENT recv = { 0 }; - recv.timestamp = timestamp; - recv.szMessage = szMessage; ProtoChainRecvMsg(hContact, &recv); } else { - AddDBEvent(hContact, EVENTTYPE_MESSAGE, timestamp, DBEF_UTF | DBEF_SENT, (int)mir_strlen(szMessage) + 1, (PBYTE)(char*)szMessage); + recv.flags = PREF_SENT; + Proto_RecvMessage(hContact, &recv); } } else if (!lstrcmpi(type, _T("typing"))) -- cgit v1.2.3