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)));