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/Weather/src/weather_update.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/Weather') diff --git a/plugins/Weather/src/weather_update.cpp b/plugins/Weather/src/weather_update.cpp index 465abe5d74..da46dc8709 100644 --- a/plugins/Weather/src/weather_update.cpp +++ b/plugins/Weather/src/weather_update.cpp @@ -181,19 +181,17 @@ int UpdateWeather(HANDLE hContact) } } } if (db_get_b(hContact, WEATHERPROTONAME, "History", 0)) { - DBEVENTINFO dbei = {0}; // internal log using history GetDisplay(&winfo, opt.hText, str2); - dbei.cbSize = sizeof(dbei); + + DBEVENTINFO dbei = { sizeof(dbei) }; dbei.szModule = WEATHERPROTONAME; dbei.timestamp = (DWORD)time(NULL); dbei.flags = DBEF_READ|DBEF_UTF; dbei.eventType = EVENTTYPE_MESSAGE; dbei.pBlob = (PBYTE)mir_utf8encodeT(str2); dbei.cbBlob = (DWORD)strlen((char*)dbei.pBlob)+1; - - // add the history event - CallService(MS_DB_EVENT_ADD, (WPARAM)hContact, (LPARAM)&dbei); + db_event_add(hContact, &dbei); } // show the popup -- cgit v1.2.3