diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-04-04 21:16:40 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-04-04 21:16:40 +0300 |
commit | 42a4ad8f54ce86aa43a7cf84b6615bf75e5cb72a (patch) | |
tree | 7db31ac0020b7ab57df461e34e7b0c9d0a0975ad /stopspam.cpp | |
parent | 69422febeb19b1b5fcb48eb61f866290ca4aeb6b (diff) |
is it right ?
Diffstat (limited to 'stopspam.cpp')
-rw-r--r-- | stopspam.cpp | 3 |
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
|