diff options
-rw-r--r-- | stopspam.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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
|