summaryrefslogtreecommitdiff
path: root/stopspam.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-04-04 21:16:40 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-04-04 21:16:40 +0300
commit42a4ad8f54ce86aa43a7cf84b6615bf75e5cb72a (patch)
tree7db31ac0020b7ab57df461e34e7b0c9d0a0975ad /stopspam.cpp
parent69422febeb19b1b5fcb48eb61f866290ca4aeb6b (diff)
is it right ?
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