poilau module -> fixed eu seen as u, added atte
This commit is contained in:
parent
85c8f15266
commit
51b1c00007
@ -4,7 +4,7 @@
|
||||
#include <time.h>
|
||||
|
||||
#define VOY_NONE -1
|
||||
enum{VOY_A, VOY_E, VOY_I, VOY_O, VOY_U, VOY_ET, VOY_AI, VOY_OU, VOY_IN, VOY_ON, VOY_OI, VOY_EN, VOY_OUILLE, VOY_US};
|
||||
enum{VOY_A, VOY_E, VOY_I, VOY_O, VOY_U, VOY_ET, VOY_AI, VOY_OU, VOY_IN, VOY_ON, VOY_OI, VOY_EN, VOY_OUILLE, VOY_ATTE, VOY_US};
|
||||
|
||||
bool PoilAuModule::messageHandler(Message msg)
|
||||
{
|
||||
@ -34,7 +34,7 @@ bool PoilAuModule::messageHandler(Message msg)
|
||||
|
||||
if(truncated.endsWith("eu", Qt::CaseInsensitive))
|
||||
voy = VOY_E;
|
||||
if(truncated.endsWith("eux", Qt::CaseInsensitive))
|
||||
else if(truncated.endsWith("eux", Qt::CaseInsensitive))
|
||||
voy = VOY_E;
|
||||
else if(truncated.endsWith("au", Qt::CaseInsensitive))
|
||||
voy = VOY_O;
|
||||
@ -94,6 +94,9 @@ bool PoilAuModule::messageHandler(Message msg)
|
||||
|
||||
if(truncated.endsWith("ouille", Qt::CaseInsensitive))
|
||||
voy = VOY_OUILLE;
|
||||
|
||||
if(truncated.endsWith("atte", Qt::CaseInsensitive))
|
||||
voy = VOY_ATTE;
|
||||
|
||||
if(truncated.endsWith("us", Qt::CaseInsensitive))
|
||||
voy = VOY_US;
|
||||
@ -144,6 +147,9 @@ bool PoilAuModule::messageHandler(Message msg)
|
||||
break;
|
||||
case VOY_OUILLE :
|
||||
answer = say("Poil aux couilles.");
|
||||
break;
|
||||
case VOY_ATTE :
|
||||
answer = say("Poil à la chatte.");
|
||||
break;
|
||||
}
|
||||
isReady = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user