diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-03-12 10:24:06 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-03-12 10:24:06 +0000 |
commit | cfe079babf14eb968eb7735aee6b0299e40fbc85 (patch) | |
tree | a3a197237843c37145e8af64f01e0c16320f231b /plugins/MyDetails/src/data.cpp | |
parent | 825ff38416d451b8e95306892bddea6dde2c0133 (diff) |
MyDetails no longer shows virtual protocols
git-svn-id: http://svn.miranda-ng.org/main/trunk@8566 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src/data.cpp')
-rw-r--r-- | plugins/MyDetails/src/data.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index 4bd8542c7d..e1bc9a57b5 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -34,7 +34,7 @@ void InitProtocolData() for (int i = 0; i < count; i++) {
PROTOACCOUNT* acc = protos[i];
- if (acc->szModuleName == NULL || acc->szModuleName[0] == '\0')
+ if (acc->szModuleName == NULL || acc->szModuleName[0] == '\0' || acc->bOldProto)
continue;
// Found a protocol
@@ -62,11 +62,9 @@ Protocol::Protocol(const char *aName, const TCHAR* descr) // Load services
int caps = CallProtoService(name, PS_GETCAPS, PFLAGNUM_1, 0);
- if ((caps & PF1_IM) && !(!strcmp(aName, "MetaContacts") || !strcmp(aName, "NewsAggr")))
+ if (caps & PF1_IM)
valid = true;
else
- valid = false;
- if (!valid)
return;
can_have_listening_to = (ProtoServiceExists(name, PS_SET_LISTENINGTO) != 0);
|