From 81530fe1f1af7e07ed17486ab6c6b1ef433e7f51 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@63852ff1-2cfd-40b9-8011-e561a9d89b1c> Date: Wed, 3 Dec 2008 12:48:27 +0000 Subject: 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 --- stopspam_mod/trunk/stopspam.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stopspam_mod/trunk/stopspam.cpp') 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; } -- cgit v1.2.3