From 34b3fb960faed1bf0866a25f0aad890bcdf4718d Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Mon, 7 Jan 2013 08:03:18 +0000 Subject: answer checking fix patch from "110704" git-svn-id: http://svn.miranda-ng.org/main/trunk@3004 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StopSpamMod/src/stopspam.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/StopSpamMod/src/stopspam.cpp b/plugins/StopSpamMod/src/stopspam.cpp index 1c3f06e62d..f8d9f205c7 100755 --- a/plugins/StopSpamMod/src/stopspam.cpp +++ b/plugins/StopSpamMod/src/stopspam.cpp @@ -148,6 +148,9 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) message = mir_a2u((char*)(dbei->pBlob)); // if message contains right answer... + + boost::algorithm::erase_all(message, "\r"); + boost::algorithm::erase_all(message, "\n"); BYTE msg = 1; if(gbInvisDisable) -- cgit v1.2.3