test to fix answers
This commit is contained in:
parent
26b7e9fe13
commit
59aaf6dfaa
@ -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)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user