summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-03-15 16:30:45 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-03-15 16:30:45 +0000
commit67bfe77f9b0868b94c3d4094b646cc7561b098e6 (patch)
treed6a53cdb3ffa02cb123c192eea1b5ece43b4d8a1 /plugins/NewXstatusNotify
parent57308d4f9a9c181ec3b6231e946eba2300ee0472 (diff)
NewXStatusNotify: Fixed displaying status changes (yeaah) (fixes #553)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8625 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp4
-rw-r--r--plugins/NewXstatusNotify/src/xstatus.cpp2
2 files changed, 3 insertions, 3 deletions
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);