summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-26 19:45:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-26 19:45:22 +0000
commit42ca1c1fd448651dfb248e1dc25df216e919fe03 (patch)
tree2343baad5505984a693ef554b0f3396fb76788f3 /plugins/TabSRMM
parentab75f8e4a3968c956425844415237a4fa6fcee63 (diff)
fix for sending status changes to IEView
git-svn-id: http://svn.miranda-ng.org/main/trunk@13851 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index 67f7fb0733..b879a381b0 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -1187,8 +1187,27 @@ void TSAPI StreamInEvents(HWND hwndDlg, MEVENT hDbEventFirst, int count, int fAp
event.iType = IEE_CLEAR_LOG;
CallService(MS_IEVIEW_EVENT, 0, (LPARAM)&event);
}
- event.iType = IEE_LOG_DB_EVENTS;
- event.hDbEventFirst = hDbEventFirst;
+
+ IEVIEWEVENTDATA evData = { 0 };
+ if (dbei_s != NULL && hDbEventFirst == 0) {
+ event.iType = IEE_LOG_MEM_EVENTS;
+
+ evData.cbSize = sizeof(evData);
+ evData.dwFlags = IEEDF_SENT;
+ switch (dbei_s->eventType) {
+ case EVENTTYPE_STATUSCHANGE: evData.iType = IEED_EVENT_STATUSCHANGE; break;
+ case EVENTTYPE_FILE: evData.iType = IEED_EVENT_FILE; break;
+ case EVENTTYPE_ERRMSG: evData.iType = IEED_EVENT_ERRMSG; break;
+ default: evData.iType = IEED_EVENT_MESSAGE; break;
+ }
+ evData.pszText = (char*)dbei_s->pBlob;
+ evData.time = dbei_s->timestamp;
+ event.eventData = &evData;
+ }
+ else {
+ event.iType = IEE_LOG_DB_EVENTS;
+ event.hDbEventFirst = hDbEventFirst;
+ }
event.count = count;
event.pszProto = dat->szProto;
CallService(MS_IEVIEW_EVENT, 0, (LPARAM)&event);