diff options
author | (no author) <(no author)@63852ff1-2cfd-40b9-8011-e561a9d89b1c> | 2008-12-03 12:48:27 +0000 |
---|---|---|
committer | (no author) <(no author)@63852ff1-2cfd-40b9-8011-e561a9d89b1c> | 2008-12-03 12:48:27 +0000 |
commit | 81530fe1f1af7e07ed17486ab6c6b1ef433e7f51 (patch) | |
tree | bc0fa4ddc9962e0c5ac4706c87d41e9687be2c40 /stopspam_mod/trunk/stopspam.cpp | |
parent | 6a19be19c8da597ca421f64461a51249c18bfcb3 (diff) |
option for delete contacts in "Not In List" group
git-svn-id: http://172.18.13.13/svn/mim_plugs@5 63852ff1-2cfd-40b9-8011-e561a9d89b1c
Diffstat (limited to 'stopspam_mod/trunk/stopspam.cpp')
-rw-r--r-- | stopspam_mod/trunk/stopspam.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stopspam_mod/trunk/stopspam.cpp b/stopspam_mod/trunk/stopspam.cpp index 100fb28..dc68edb 100644 --- a/stopspam_mod/trunk/stopspam.cpp +++ b/stopspam_mod/trunk/stopspam.cpp @@ -4,6 +4,9 @@ extern TCHAR const * defQuestion; MIRANDA_HOOK_EVENT(ME_DB_CONTACT_ADDED, w, l)
{
+ if(gbDelNotInList)
+ if(DBGetContactSettingStringPAN_A((HANDLE)w, "CList", "Group", "") == "Not In List")
+ CallService(MS_DB_CONTACT_DELETE, (WPARAM)w, 0);
DBWriteContactSettingByte((HANDLE)w, "CList", "NotOnList", 1);
return 0;
}
|