diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-03-04 20:47:28 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-03-04 20:47:28 +0200 |
commit | 033994e10490492e836f88871bb061cf1bcc084e (patch) | |
tree | af970713e738d4c661ecd6908eec5e75e51c6be7 | |
parent | b317b66c1a85de26def5c3371fe04b85f334fe45 (diff) |
modified: stopspam.cpp
-rwxr-xr-x | stopspam.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stopspam.cpp b/stopspam.cpp index 7df9a0b..0e24879 100755 --- a/stopspam.cpp +++ b/stopspam.cpp @@ -142,7 +142,12 @@ MIRANDA_HOOK_EVENT(ME_DB_EVENT_FILTER_ADD, w, l) msg = 0; //is it useful ? } bool answered = false; - if(!gbRegexMatch) + if(gbMathExpression) + { + int msg = _ttoi(message.c_str()); + answered = (msg == math_answer); + } + else if(!gbRegexMatch) answered = gbCaseInsensitive?(!Stricmp(message.c_str(), (variables_parse(gbAnswer, hContact).c_str()))):( !_tcscmp(message.c_str(), (variables_parse(gbAnswer, hContact).c_str()))); else { |