summaryrefslogtreecommitdiff
path: root/protocols/GTalkExt/db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/GTalkExt/db.cpp')
-rw-r--r--protocols/GTalkExt/db.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/GTalkExt/db.cpp b/protocols/GTalkExt/db.cpp
index ac716ed768..1e9c3deb23 100644
--- a/protocols/GTalkExt/db.cpp
+++ b/protocols/GTalkExt/db.cpp
@@ -82,11 +82,11 @@ void WriteJidSetting(LPCSTR name, LPCTSTR jid, LPCTSTR setting)
void RenewPseudocontactHandles()
{
int count = 0;
- PROTOCOLDESCRIPTOR **protos;
- CallService(MS_PROTO_ENUMPROTOCOLS, (WPARAM)&count, (LPARAM)&protos);
+ PROTOACCOUNT **protos;
+ ProtoEnumAccounts(&count, &protos);
for (int i = 0; i < count; i++) {
- DBDeleteContactSetting(0, protos[i]->szName, PSEUDOCONTACT_LINK);
- DBDeleteContactSetting(0, protos[i]->szName, "GMailExtNotifyContact"); // remove this
+ DBDeleteContactSetting(0, protos[i]->szModuleName, PSEUDOCONTACT_LINK);
+ DBDeleteContactSetting(0, protos[i]->szModuleName, "GMailExtNotifyContact"); // remove this
}
HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0);