added more cases again
This commit is contained in:
		
							parent
							
								
									050460e296
								
							
						
					
					
						commit
						4c1e0d0db0
					
				@ -2,7 +2,7 @@
 | 
				
			|||||||
#include "message.h"
 | 
					#include "message.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define VOY_NONE -1
 | 
					#define VOY_NONE -1
 | 
				
			||||||
enum{VOY_A, VOY_E, VOY_I, VOY_O, VOY_U, VOY_ET, VOY_AI, VOY_OU, VOY_IN, VOY_EN, VOY_OUILLE};
 | 
					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};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool PoilAuModule::messageHandler(Message msg)
 | 
					bool PoilAuModule::messageHandler(Message msg)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -29,14 +29,12 @@ bool PoilAuModule::messageHandler(Message msg)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if(msg.args.endsWith("ait", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("ait", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_AI;
 | 
					        voy = VOY_AI;
 | 
				
			||||||
    else if(msg.args.endsWith("it", Qt::CaseInsensitive))
 | 
					 | 
				
			||||||
        voy = VOY_I;
 | 
					 | 
				
			||||||
    if(msg.args.endsWith("ais", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("ais", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_AI;
 | 
					        voy = VOY_AI;
 | 
				
			||||||
    else if(msg.args.endsWith("is", Qt::CaseInsensitive))
 | 
					 | 
				
			||||||
        voy = VOY_I;
 | 
					 | 
				
			||||||
    if(msg.args.endsWith("ai", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("ai", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_AI;
 | 
					        voy = VOY_AI;
 | 
				
			||||||
 | 
					    else if(msg.args.endsWith("oi", Qt::CaseInsensitive))
 | 
				
			||||||
 | 
					        voy = VOY_OI;
 | 
				
			||||||
    else if(msg.args.endsWith("i", Qt::CaseInsensitive))
 | 
					    else if(msg.args.endsWith("i", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_I;
 | 
					        voy = VOY_I;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -56,6 +54,16 @@ bool PoilAuModule::messageHandler(Message msg)
 | 
				
			|||||||
        voy = VOY_EN;
 | 
					        voy = VOY_EN;
 | 
				
			||||||
    if(msg.args.endsWith("in", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("in", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_IN;
 | 
					        voy = VOY_IN;
 | 
				
			||||||
 | 
					    if(msg.args.endsWith("on", Qt::CaseInsensitive))
 | 
				
			||||||
 | 
					        voy = VOY_ON;
 | 
				
			||||||
 | 
					    if(msg.args.endsWith("ont", Qt::CaseInsensitive))
 | 
				
			||||||
 | 
					        voy = VOY_ON;
 | 
				
			||||||
 | 
					    if(msg.args.endsWith("oie", Qt::CaseInsensitive))
 | 
				
			||||||
 | 
					        voy = VOY_OI;
 | 
				
			||||||
 | 
					    if(msg.args.endsWith("ois", Qt::CaseInsensitive))
 | 
				
			||||||
 | 
					        voy = VOY_OI;
 | 
				
			||||||
 | 
					    if(msg.args.endsWith("oit", Qt::CaseInsensitive))
 | 
				
			||||||
 | 
					        voy = VOY_OI;
 | 
				
			||||||
    if(msg.args.endsWith("a", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("a", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_A;
 | 
					        voy = VOY_A;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -94,6 +102,12 @@ bool PoilAuModule::messageHandler(Message msg)
 | 
				
			|||||||
        case VOY_IN :
 | 
					        case VOY_IN :
 | 
				
			||||||
            answer = say("Poil aux mains.");
 | 
					            answer = say("Poil aux mains.");
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
 | 
					        case VOY_ON :
 | 
				
			||||||
 | 
					            answer = say("Poil au fion.");
 | 
				
			||||||
 | 
					        break;
 | 
				
			||||||
 | 
					        case VOY_OI :
 | 
				
			||||||
 | 
					            answer = say("Poil aux doigts.");
 | 
				
			||||||
 | 
					        break;
 | 
				
			||||||
        case VOY_EN :
 | 
					        case VOY_EN :
 | 
				
			||||||
            answer = say("Poil aux dents.");
 | 
					            answer = say("Poil aux dents.");
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user