fixed bug
This commit is contained in:
		
							parent
							
								
									3a923dd675
								
							
						
					
					
						commit
						1935703d07
					
				@ -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)
 | 
					bool PoilAuModule::messageHandler(Message msg)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    if(msg.command.compare(QString("PRIVMSG"), Qt::CaseInsensitive) != 0)
 | 
				
			||||||
 | 
					        return false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    int voy = VOY_NONE;
 | 
					    int voy = VOY_NONE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if(msg.args.endsWith("eu", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("eu", Qt::CaseInsensitive))
 | 
				
			||||||
@ -22,6 +25,11 @@ bool PoilAuModule::messageHandler(Message msg)
 | 
				
			|||||||
    else if(msg.args.endsWith("o", Qt::CaseInsensitive))
 | 
					    else if(msg.args.endsWith("o", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_O;
 | 
					        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))
 | 
					    if(msg.args.endsWith("et", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_ET;
 | 
					        voy = VOY_ET;
 | 
				
			||||||
    if(msg.args.endsWith("é", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("é", Qt::CaseInsensitive))
 | 
				
			||||||
@ -30,8 +38,6 @@ bool PoilAuModule::messageHandler(Message msg)
 | 
				
			|||||||
        voy = VOY_ET;
 | 
					        voy = VOY_ET;
 | 
				
			||||||
    if(msg.args.endsWith("è", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("è", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_AI;
 | 
					        voy = VOY_AI;
 | 
				
			||||||
    if(msg.args.endsWith("ai", Qt::CaseInsensitive))
 | 
					 | 
				
			||||||
        voy = VOY_AI;
 | 
					 | 
				
			||||||
    if(msg.args.endsWith("an", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("an", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_EN;
 | 
					        voy = VOY_EN;
 | 
				
			||||||
    if(msg.args.endsWith("en", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("en", Qt::CaseInsensitive))
 | 
				
			||||||
@ -40,8 +46,7 @@ bool PoilAuModule::messageHandler(Message msg)
 | 
				
			|||||||
        voy = VOY_IN;
 | 
					        voy = VOY_IN;
 | 
				
			||||||
    if(msg.args.endsWith("a", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("a", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_A;
 | 
					        voy = VOY_A;
 | 
				
			||||||
    if(msg.args.endsWith("i", Qt::CaseInsensitive))
 | 
					
 | 
				
			||||||
        voy = VOY_I;
 | 
					 | 
				
			||||||
    if(msg.args.endsWith("ouille", Qt::CaseInsensitive))
 | 
					    if(msg.args.endsWith("ouille", Qt::CaseInsensitive))
 | 
				
			||||||
        voy = VOY_OUILLE;
 | 
					        voy = VOY_OUILLE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user