fixed case

This commit is contained in:
Anselme 2015-08-21 17:22:28 +02:00
parent 59aaf6dfaa
commit b25df83df7

View File

@ -31,7 +31,7 @@ bool FourasModule::messageHandler(Message msg)
return true;
}
if(current != -1 && msg.args.contains(riddles->getAnswer(current)))
if(current != -1 && msg.args.contains(riddles->getAnswer(current), Qt::CaseInsensitive))
{
answer = say(QString("Bravo %1 ! la réponse était bien : %2").arg(msg.nick).arg(riddles->getAnswer(current)));
current = -1;