diff options
Diffstat (limited to '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 { |