From 109877a3c75cb290c55755dcfc88794d2453669d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Mar 2013 17:32:39 +0000 Subject: MS_DB_EVENT_* services remained, but their calls removed git-svn-id: http://svn.miranda-ng.org/main/trunk@4255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/src/dbevent.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'plugins/SecureIM/src/dbevent.cpp') diff --git a/plugins/SecureIM/src/dbevent.cpp b/plugins/SecureIM/src/dbevent.cpp index 6f5f1bc80b..6e43318dad 100644 --- a/plugins/SecureIM/src/dbevent.cpp +++ b/plugins/SecureIM/src/dbevent.cpp @@ -1,20 +1,16 @@ #include "commonheaders.h" -void HistoryLog(HANDLE hContact, LPCSTR szText) { - - DBEVENTINFO dbei; - memset(&dbei, 0, sizeof(dbei)); - - dbei.cbSize = sizeof(dbei); +void HistoryLog(HANDLE hContact, LPCSTR szText) +{ + DBEVENTINFO dbei = { sizeof(dbei) }; dbei.szModule = GetContactProto(hContact); dbei.flags = DBEF_SENT|DBEF_READ; dbei.timestamp = time(NULL); dbei.eventType = EVENTTYPE_MESSAGE; dbei.cbBlob = (int)strlen(szText) + 1; dbei.pBlob = (PBYTE)szText; - - CallService(MS_DB_EVENT_ADD, 0, (LPARAM)&dbei); + db_event_add(0, &dbei); } -- cgit v1.2.3