From e04fe9be90865e54d060c852ecd4f482c0514fdd Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 18 Apr 2011 18:20:23 +0300 Subject: fixed infinite talk protection option --- stopspam.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'stopspam.cpp') diff --git a/stopspam.cpp b/stopspam.cpp index d76d79a..8ca9111 100644 --- a/stopspam.cpp +++ b/stopspam.cpp @@ -216,7 +216,10 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) && (!gbMaxQuestCount || DBGetContactSettingDword(hContact, pluginName, "QuestionCount", 0) < gbMaxQuestCount)) { // send question - tstring q = _T("StopSpam automatic message:\r\n") + variables_parse(gbQuestion, hContact); + tstring q; + if(gbInfTalkProtection) + q += _T("StopSpam automatic message:\r\n"); + q += variables_parse(gbQuestion, hContact); #ifdef _UNICODE char * buf=mir_utf8encodeW(q.c_str()); -- cgit v1.2.3