From 59aaf6dfaa4c6ebf0eb2094841f7f6e6a7a93b23 Mon Sep 17 00:00:00 2001 From: Anselme Date: Fri, 21 Aug 2015 17:21:35 +0200 Subject: [PATCH] test to fix answers --- app/fourasmodule.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/fourasmodule.cpp b/app/fourasmodule.cpp index 0c0fa8a..d52ec56 100644 --- a/app/fourasmodule.cpp +++ b/app/fourasmodule.cpp @@ -24,6 +24,13 @@ bool FourasModule::messageHandler(Message msg) return true; } + if(msg.args.compare("!answer") == 0) + { + answer = say(QString("%1 - Perdu ! La réponse était : %2").arg(current).arg(riddles->getAnswer(current))); + current = -1; + return true; + } + if(current != -1 && msg.args.contains(riddles->getAnswer(current))) { answer = say(QString("Bravo %1 ! la réponse était bien : %2").arg(msg.nick).arg(riddles->getAnswer(current)));