diff --git a/app/poilaumodule.cpp b/app/poilaumodule.cpp index a760351..ae91a93 100644 --- a/app/poilaumodule.cpp +++ b/app/poilaumodule.cpp @@ -6,6 +6,9 @@ enum{VOY_A, VOY_E, VOY_I, VOY_O, VOY_U, VOY_ET, VOY_AI, VOY_OU, VOY_IN, VOY_EN, bool PoilAuModule::messageHandler(Message msg) { + if(msg.command.compare(QString("PRIVMSG"), Qt::CaseInsensitive) != 0) + return false; + int voy = VOY_NONE; if(msg.args.endsWith("eu", Qt::CaseInsensitive)) @@ -22,6 +25,11 @@ bool PoilAuModule::messageHandler(Message msg) else if(msg.args.endsWith("o", Qt::CaseInsensitive)) voy = VOY_O; + if(msg.args.endsWith("ai", Qt::CaseInsensitive)) + voy = VOY_AI; + else if(msg.args.endsWith("i", Qt::CaseInsensitive)) + voy = VOY_I; + if(msg.args.endsWith("et", Qt::CaseInsensitive)) voy = VOY_ET; if(msg.args.endsWith("é", Qt::CaseInsensitive)) @@ -30,8 +38,6 @@ bool PoilAuModule::messageHandler(Message msg) voy = VOY_ET; if(msg.args.endsWith("è", Qt::CaseInsensitive)) voy = VOY_AI; - if(msg.args.endsWith("ai", Qt::CaseInsensitive)) - voy = VOY_AI; if(msg.args.endsWith("an", Qt::CaseInsensitive)) voy = VOY_EN; if(msg.args.endsWith("en", Qt::CaseInsensitive)) @@ -40,8 +46,7 @@ bool PoilAuModule::messageHandler(Message msg) voy = VOY_IN; if(msg.args.endsWith("a", Qt::CaseInsensitive)) voy = VOY_A; - if(msg.args.endsWith("i", Qt::CaseInsensitive)) - voy = VOY_I; + if(msg.args.endsWith("ouille", Qt::CaseInsensitive)) voy = VOY_OUILLE;