diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-10-24 18:54:18 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-10-24 18:54:18 +0000 |
commit | aa6b2f434c204d6da1906f381c418bd8f0bca163 (patch) | |
tree | 4771c946f6db36ddb80842362fb1f7ec37deda27 /protocols/Steam/src/steam_polling.cpp | |
parent | 910486f051234fb8e24426152af98ab90319aa16 (diff) |
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
Diffstat (limited to 'protocols/Steam/src/steam_polling.cpp')
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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"))) |