diff options
author | Sergey (Elzor) Bolhovskoy <elzor@foobar2000.ru> | 2010-07-19 22:30:21 +0600 |
---|---|---|
committer | Sergey (Elzor) Bolhovskoy <elzor@foobar2000.ru> | 2010-07-19 22:30:21 +0600 |
commit | 5e31bf278e243bdb21027e9eafbccb5b4e1f329e (patch) | |
tree | 26ff795214188cb8f126f19aad6cf0d05a0243e8 /stopspam.cpp | |
parent | 562bcedfbf741cedd6731fc172eb033e15d2bb3b (diff) |
add spam message log, fixed remove contact from ICQ <Not In List> group
Diffstat (limited to 'stopspam.cpp')
-rw-r--r-- | stopspam.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stopspam.cpp b/stopspam.cpp index 92d2658..e7ff9b9 100644 --- a/stopspam.cpp +++ b/stopspam.cpp @@ -83,8 +83,10 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam) MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) { HANDLE hContact = (HANDLE)w; + if(!l) //fix potential DEP crash + return 0; DBEVENTINFO * dbei = (DBEVENTINFO*)l; - + // if event is in protocol that is not despammed if(!ProtoInList(dbei->szModule)) { @@ -192,7 +194,7 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) DBDeleteContactSetting(hContact, "CList", "NotOnList"); }; // auto auth. reqwest with send congratulation - if(gbAutoReqAuth) // ANSI may be not work + if(gbAutoReqAuth) CallContactService(hContact,PSS_AUTHREQUESTW,0, (LPARAM)variables_parse(gbCongratulation, hContact).c_str()); } } @@ -251,6 +253,7 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) CallService(MS_DB_EVENT_ADD, (WPARAM)hContact, (LPARAM)dbei); }; // reject processing of the event + LogSpamToFile(hContact, message); return 1; } |