From 67bfe77f9b0868b94c3d4094b646cc7561b098e6 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 15 Mar 2014 16:30:45 +0000 Subject: NewXStatusNotify: Fixed displaying status changes (yeaah) (fixes #553) git-svn-id: http://svn.miranda-ng.org/main/trunk@8625 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewXstatusNotify/src/main.cpp | 4 ++-- plugins/NewXstatusNotify/src/xstatus.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewXstatusNotify/src') diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp index 54c58188c1..0896ac52bc 100644 --- a/plugins/NewXstatusNotify/src/main.cpp +++ b/plugins/NewXstatusNotify/src/main.cpp @@ -837,7 +837,7 @@ int ContactStatusChanged(MCONTACT hContact, WORD oldStatus,WORD newStatus) dbei.flags = DBEF_READ | DBEF_UTF; dbei.timestamp = (DWORD)time(NULL); - dbei.szModule = szProto; + dbei.szModule = MODULE; HANDLE hDBEvent = db_event_add(hContact, &dbei); mir_free(blob); } @@ -1132,7 +1132,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) int count = 0; PROTOACCOUNT **accounts = NULL; - CallService(MS_PROTO_ENUMACCOUNTS, (WPARAM)&count, (LPARAM)&accounts); + ProtoEnumAccounts(&count, &accounts); for (int i = 0; i < count; i++) if (IsAccountEnabled(accounts[i])) db_set_b(NULL, MODULE, accounts[i]->szModuleName, 0); diff --git a/plugins/NewXstatusNotify/src/xstatus.cpp b/plugins/NewXstatusNotify/src/xstatus.cpp index e5e070ac62..b6478f3a6f 100644 --- a/plugins/NewXstatusNotify/src/xstatus.cpp +++ b/plugins/NewXstatusNotify/src/xstatus.cpp @@ -263,7 +263,7 @@ void LogToMessageWindow(XSTATUSCHANGE *xsc, BOOL opening) dbei.flags = DBEF_READ | DBEF_UTF; dbei.timestamp = (DWORD)time(NULL); - dbei.szModule = xsc->szProto; + dbei.szModule = MODULE; HANDLE hDBEvent = db_event_add(xsc->hContact, &dbei); mir_free(blob); -- cgit v1.2.3