From eb9cc85c62f12ace895a4a5adee00a0679638f81 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 4 Apr 2010 21:28:02 +0300 Subject: npos --- stopspam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stopspam.cpp') diff --git a/stopspam.cpp b/stopspam.cpp index 84da5bf..67abaeb 100644 --- a/stopspam.cpp +++ b/stopspam.cpp @@ -203,7 +203,7 @@ 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) != -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.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 // and question count for this contact is less then maximum -- cgit v1.2.3