diff options
Diffstat (limited to 'stopspam.cpp')
-rw-r--r-- | stopspam.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/stopspam.cpp b/stopspam.cpp index 67abaeb..d071a08 100644 --- a/stopspam.cpp +++ b/stopspam.cpp @@ -34,15 +34,6 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam) HANDLE hcntct;
hcntct=*((PHANDLE)(dbei.pBlob+sizeof(DWORD)));
- /*char text[100];
- sprintf(text, "%d, %d, \r\n%d, %d",
- (int)hcntct,
- (int)hDbEvent,
- DBGetContactSettingByte(hContact, pluginName, answeredSetting, 0),
- DBGetContactSettingByte(hContact, "CList", "NotOnList", 0));
-
- int a = MessageBox( 0, text, "Авторизация",MB_OK|MB_ICONQUESTION );*/
-
// if request is from unknown or not marked Answered contact
@@ -52,9 +43,6 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_ADDED, wParam, lParam) if(a && b)//
{
// ...send message
- /*MessageBox( 0, "...send message", "yappp...",MB_OK|MB_ICONQUESTION );*/
-// std::string allowService = dbei.szModule;
-// allowService += PS_AUTHDENY;
if(gbHideContacts)
DBWriteContactSettingByte(hcntct, "CList", "Hidden", 1);
@@ -96,19 +84,6 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) }
//do not check excluded contact
-/* if(DBGetContactSettingWord(hContact, dbei->szModule, "ServerId", 0))
- {
- DBDeleteContactSetting(hContact, "CList", "NotOnList");
- return 0;
- }*/
-
-/* if(gbDelNotInList)
- if(DBGetContactSettingStringPAN_A((HANDLE)w, "CList", "Group", "") == "Not In List")
- {
- CallService(MS_DB_CONTACT_DELETE, (WPARAM)w, 0);
- return 1;
- }
-*/
if(DBGetContactSettingByte(hContact, pluginName, "Answered", 0))
return 0;
if(DBGetContactSettingByte(hContact, pluginName, "Excluded", 0))
@@ -117,10 +92,6 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) DBDeleteContactSetting(hContact, pluginName, "Excluded");
return 0;
}
- // if event is not a message, or if the message has been read or sent...
-/* if((dbei->flags & DBEF_READ) || (dbei->eventType != EVENTTYPE_MESSAGE) || (dbei->eventType != EVENTTYPE_FILE) || (dbei->eventType != EVENTTYPE_URL) || (dbei->eventType != EVENTTYPE_CONTACTS))
- // ...let the event go its way
- return 0; */
//we want block not only messages, i seen many types other eventtype flood
if(dbei->flags & DBEF_READ)
// ...let the event go its way
@@ -163,8 +134,6 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) // if message contains right answer...
-// if( tstring::npos!=message.find(gbAnswer) )
-// int Answered = 0;
BYTE msg = 1;
if(gbInvisDisable)
{
@@ -202,7 +171,6 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) }
if(gbIgnoreURL)
-// if(!Stricmp(message.c_str(), _T("http:")) || !Stricmp(message.c_str(), _T("www")) || !Stricmp(message.c_str(), _T(".ru")) || !Stricmp(message.c_str(), _T(".com")) || !Stricmp(message.c_str(), _T(".de")) || !Stricmp(message.c_str(), _T(".cz")) || !Stricmp(message.c_str(), _T(".org")) || !Stricmp(message.c_str(), _T(".net")) || !Stricmp(message.c_str(), _T(".su")))
if((message.find_first_of(_T("http"),0) != std::string::npos) || (message.find_first_of(_T("www"),0) != std::string::npos) || (message.find_first_of(_T(".ru"),0) != std::string::npos) || (message.find_first_of(_T(".com"),0) != std::string::npos) || (message.find_first_of(_T(".de"),0) != std::string::npos) || (message.find_first_of(_T(".cz"),0) != std::string::npos) || (message.find_first_of(_T(".org"),0) != std::string::npos) || (message.find_first_of(_T(".net"),0) != std::string::npos) || (message.find_first_of(_T(".su"),0) != std::string::npos))
;
// if message message does not contain infintite talk protection prefix
|