From c6fb861d7159279b6ee4a4dd678d4693ee56bac6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Oct 2012 12:50:40 +0000 Subject: 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 --- plugins/MyDetails/src/data.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/MyDetails/src') diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index 1bcb004409..ddd96e920c 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -35,9 +35,6 @@ void InitProtocolData() for (int i = 0; i < count; i++) { PROTOACCOUNT* acc = protos[i]; - if (acc->type != PROTOTYPE_PROTOCOL) - continue; - if (acc->szModuleName == NULL || acc->szModuleName[0] == '\0') continue; @@ -195,9 +192,9 @@ void Protocol::SetStatus(int aStatus) PROTOACCOUNT **accs; pCount = 0; - CallService(MS_PROTO_ENUMPROTOCOLS,(WPARAM)&count,(LPARAM)&accs); + ProtoEnumAccounts(&count, &accs); for (i=0; i < count; i++) { - if (accs[i]->type != PROTOTYPE_PROTOCOL || CallProtoService(accs[i]->szModuleName,PS_GETCAPS,PFLAGNUM_2,0)==0) + if ( CallProtoService(accs[i]->szModuleName,PS_GETCAPS,PFLAGNUM_2,0)==0) continue; pCount++; } -- cgit v1.2.3