summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);