diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-08 10:12:07 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-08 10:12:07 +0300 |
commit | fc6b9e74816401ad364ff0e675767a30c84d9896 (patch) | |
tree | 165aba20abfb07fe380224044c3f00647a678e05 /utilities.cpp | |
parent | d43354bf06f8f1b404d5b26d35fe5e758da12ab1 (diff) |
added ability to remove conflicting filters
Diffstat (limited to 'utilities.cpp')
-rw-r--r-- | utilities.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utilities.cpp b/utilities.cpp index 2ad4cf2..70bb870 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -755,3 +755,16 @@ const bool StriStr(const char *str, const char *substr) return i;
}
+
+void SecureIM_cleanup()
+{
+ for (HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0); hContact; hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDNEXT, (WPARAM)hContact, 0)) + { + if(CallService(MS_PROTO_ISPROTOONCONTACT, (WPARAM)hContact, (LPARAM)"SecureIM"))
+ CallService(MS_PROTO_REMOVEFROMCONTACT, (WPARAM)hContact, (LPARAM)"SecureIM");
+ if(CallService(MS_PROTO_ISPROTOONCONTACT, (WPARAM)hContact, (LPARAM)"OTR"))
+ CallService(MS_PROTO_REMOVEFROMCONTACT, (WPARAM)hContact, (LPARAM)"OTR");
+ if(CallService(MS_PROTO_ISPROTOONCONTACT, (WPARAM)hContact, (LPARAM)"GnuPGPlugin"))
+ CallService(MS_PROTO_REMOVEFROMCONTACT, (WPARAM)hContact, (LPARAM)"GnuPGPlugin");
+ }
+}
\ No newline at end of file |