summaryrefslogtreecommitdiff
path: root/stopspam.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stopspam.cpp')
-rw-r--r--stopspam.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/stopspam.cpp b/stopspam.cpp
index c3daa94..84da5bf 100644
--- a/stopspam.cpp
+++ b/stopspam.cpp
@@ -202,7 +202,8 @@ 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(!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) != -1) || (message.find_first_of(_T("www"),0) != -1) || (message.find_first_of(_T(".ru"),0) != -1) || (message.find_first_of(_T(".com"),0) != -1) || (message.find_first_of(_T(".de"),0) != -1) || (message.find_first_of(_T(".cz"),0) != -1) || (message.find_first_of(_T(".org"),0) != -1) || (message.find_first_of(_T(".net"),0) != -1) || (message.find_first_of(_T(".su"),0) != -1))
;
// if message message does not contain infintite talk protection prefix
// and question count for this contact is less then maximum