summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Boltun/src/actionQueue.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/Boltun/src/actionQueue.cpp b/plugins/Boltun/src/actionQueue.cpp
index ea9b89d215..fbad765f55 100644
--- a/plugins/Boltun/src/actionQueue.cpp
+++ b/plugins/Boltun/src/actionQueue.cpp
@@ -84,15 +84,13 @@ static bool NotifyTyping(MCONTACT hContact)
static void TimerAnswer(MCONTACT hContact, const TalkBot::MessageInfo* info)
{
T2Utf msg(info->Answer.c_str());
- size_t bufsize = mir_strlen(msg);
-
ProtoChainSend(hContact, PSS_MESSAGE, 0, (LPARAM)msg);
DBEVENTINFO dbei = {};
- dbei.cbBlob = (int)bufsize;
- dbei.pBlob = (PBYTE)(char*)msg;
+ dbei.cbBlob = (int)mir_strlen(msg);
+ dbei.pBlob = msg;
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.flags = DBEF_SENT;
+ dbei.flags = DBEF_SENT | DBEF_UTF;
dbei.szModule = BOLTUN_NAME;
dbei.timestamp = (DWORD)time(nullptr);