diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-09-07 12:27:18 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-09-07 12:27:18 +0000 |
commit | 3959cd17048647e4b7ce9f55680302bac1fdae1b (patch) | |
tree | 64e80a6832c74794ecdd777d10c418727c272e06 | |
parent | d4625b1701d6d70c84c6268cda72214512e66d60 (diff) |
MyDetails: ignore Metacontacts and NewsAggregator
git-svn-id: http://svn.miranda-ng.org/main/trunk@1543 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/MyDetails/src/data.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index 7dc3831348..5b80f138ef 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -74,8 +74,11 @@ Protocol::Protocol(const char *aName, const TCHAR* descr) // Load services
int caps = CallProtoService(name, PS_GETCAPS, PFLAGNUM_1, 0);
- valid = (caps & PF1_IM) == PF1_IM && strcmp(aName, "MetaContacts");
- if ( !valid)
+ if ((caps & PF1_IM) && !(!strcmp(aName, "MetaContacts") || !strcmp(aName, "NewsAggr")))
+ valid = true;
+ else
+ valid = false;
+ if (!valid)
return;
can_have_listening_to = (ProtoServiceExists(name, PS_SET_LISTENINGTO) != 0);
|