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 /plugins/MyDetails/src/data.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 'plugins/MyDetails/src/data.cpp')
-rw-r--r-- | plugins/MyDetails/src/data.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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++;
}
|