From fd698ca7b953a612f1094e3b0412642f9e55b9bc Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 26 Dec 2012 23:08:57 +0000 Subject: [PATCH] added: put the rebus answer into the log (when user has entered an incorrect answer) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@911 e52654a7-88a9-db11-a3e9-0013d4bc506e --- core/rebus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/rebus.cpp b/core/rebus.cpp index 452c2b5..fb23c93 100755 --- a/core/rebus.cpp +++ b/core/rebus.cpp @@ -149,7 +149,9 @@ bool Rebus::CheckRebus() if( IsAnswerOk(cur->session->rebus_item, cur->request->PostVar(L"rebus")) ) return true; - log << log1 << "Rebus: rebus has an incorrect answer" << logend; + log << log1 << "Rebus: rebus has an incorrect answer, expected: " + << cur->session->rebus_item->answer << logend; + // don't add cur->session->spam_score when the rebus has incorrect answer // a user could have made a mistake