summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-27 11:18:52 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-04-27 11:18:52 +0200
commitd78c9d23d5ad5e1341e46094d7f9e29686acaa7e (patch)
treea25e4f14cb92e3af8d2f9e0453757d856528b335 /plugins
parent37071053f2bfb38733d0ef912b3a414f67b8be03 (diff)
code cleaning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SimpleAR/src/Main.cpp2
-rw-r--r--plugins/TabSRMM/src/sendlater.cpp3
-rw-r--r--plugins/TabSRMM/src/sendqueue.cpp3
3 files changed, 3 insertions, 5 deletions
diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp
index 13bf7cd492..8375b1e5df 100644
--- a/plugins/SimpleAR/src/Main.cpp
+++ b/plugins/SimpleAR/src/Main.cpp
@@ -216,7 +216,7 @@ INT addEvent(WPARAM hContact, LPARAM hDBEvent)
ProtoChainSend(hContact, PSS_MESSAGE, 0, pszUtf);
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.flags = DBEF_UTF | DBEF_SENT; //DBEF_READ;
+ dbei.flags = DBEF_UTF | DBEF_SENT;
dbei.szModule = pszProto;
dbei.timestamp = time(nullptr);
dbei.cbBlob = (int)mir_strlen(pszUtf) + 1;
diff --git a/plugins/TabSRMM/src/sendlater.cpp b/plugins/TabSRMM/src/sendlater.cpp
index e98a46c087..bd7b744e35 100644
--- a/plugins/TabSRMM/src/sendlater.cpp
+++ b/plugins/TabSRMM/src/sendlater.cpp
@@ -438,11 +438,10 @@ HANDLE CSendLater::processAck(const ACKDATA *ack)
if (!p->fSuccess) {
DBEVENTINFO dbei = {};
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.flags = DBEF_SENT;
+ dbei.flags = DBEF_SENT | DBEF_UTF;
dbei.szModule = GetContactProto((p->hContact));
dbei.timestamp = time(nullptr);
dbei.cbBlob = (int)mir_strlen(p->sendBuffer) + 1;
- dbei.flags |= DBEF_UTF;
dbei.pBlob = (PBYTE)(p->sendBuffer);
db_event_add(p->hContact, &dbei);
diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp
index 850ddee811..5b2fbd4979 100644
--- a/plugins/TabSRMM/src/sendqueue.cpp
+++ b/plugins/TabSRMM/src/sendqueue.cpp
@@ -460,7 +460,7 @@ int SendQueue::ackMessage(CTabBaseDlg *dat, WPARAM wParam, LPARAM lParam)
DBEVENTINFO dbei = {};
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.flags = DBEF_SENT;
+ dbei.flags = DBEF_SENT | DBEF_UTF;
dbei.szModule = GetContactProto(job.hContact);
dbei.timestamp = time(nullptr);
dbei.cbBlob = (int)mir_strlen(job.szSendBuffer) + 1;
@@ -474,7 +474,6 @@ int SendQueue::ackMessage(CTabBaseDlg *dat, WPARAM wParam, LPARAM lParam)
if (job.dwFlags & PREF_RTL)
dbei.flags |= DBEF_RTL;
- dbei.flags |= DBEF_UTF;
dbei.pBlob = (PBYTE)job.szSendBuffer;
MessageWindowEvent evt = { job.iSendId, job.hContact, &dbei };