diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-07 12:50:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-07 12:50:40 +0000 |
commit | c6fb861d7159279b6ee4a4dd678d4693ee56bac6 (patch) | |
tree | df911e6eaf7bd944081aae96f5df9c2ef84c2476 /protocols/GTalkExt/notifications.cpp | |
parent | 95da57c8e9cf894adf3afae124a29d292b085c5e (diff) |
death of old nasty clutch with MS_PROTO_ENUMPROTOCOLS & PROTOACCOUNT::type
git-svn-id: http://svn.miranda-ng.org/main/trunk@1799 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/GTalkExt/notifications.cpp')
-rw-r--r-- | protocols/GTalkExt/notifications.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/GTalkExt/notifications.cpp b/protocols/GTalkExt/notifications.cpp index 8a8d8a618e..9a1819a7f1 100644 --- a/protocols/GTalkExt/notifications.cpp +++ b/protocols/GTalkExt/notifications.cpp @@ -75,15 +75,15 @@ LRESULT CALLBACK WndProc(HWND wnd, UINT msg, WPARAM wParam, LPARAM lParam) LPCSTR GetJidAcc(LPCTSTR jid)
{
int count = 0;
- PROTOCOLDESCRIPTOR **protos;
- CallService(MS_PROTO_ENUMPROTOCOLS, (WPARAM)&count, (LPARAM)&protos);
+ PROTOACCOUNT **protos;
+ ProtoEnumAccounts(&count, &protos);
DBVARIANT dbv;
for (int i = 0; i < count; i++)
- if (getJabberApi(protos[i]->szName))
- if (!DBGetContactSettingTString(0, protos[i]->szName, "jid", &dbv))
+ if (getJabberApi(protos[i]->szModuleName))
+ if (!DBGetContactSettingTString(0, protos[i]->szModuleName, "jid", &dbv))
__try {
- if (!lstrcmpi(jid, dbv.ptszVal)) return protos[i]->szName;
+ if (!lstrcmpi(jid, dbv.ptszVal)) return protos[i]->szModuleName;
}
__finally {
DBFreeVariant(&dbv);
|