summaryrefslogtreecommitdiff
path: root/stopspam.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-03-04 20:47:28 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2012-03-04 20:47:28 +0200
commit033994e10490492e836f88871bb061cf1bcc084e (patch)
treeaf970713e738d4c661ecd6908eec5e75e51c6be7 /stopspam.cpp
parentb317b66c1a85de26def5c3371fe04b85f334fe45 (diff)
modified: stopspam.cpp
Diffstat (limited to 'stopspam.cpp')
-rwxr-xr-xstopspam.cpp7
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
{