mirror of
				https://github.com/reality/dbot.git
				synced 2025-11-04 02:37:32 +01:00 
			
		
		
		
	Don't error if regex syntax is invalid for ~ default.
This commit is contained in:
		
							parent
							
								
									55dec12324
								
							
						
					
					
						commit
						aa72af3867
					
				@ -69,7 +69,9 @@ var command = function(dbot) {
 | 
			
		||||
                        dbot.commands[commandName](event);
 | 
			
		||||
                        dbot.save();
 | 
			
		||||
                    } else {
 | 
			
		||||
                        event.reply(dbot.t('syntax_error'));
 | 
			
		||||
                        if(commandName !== '~') {
 | 
			
		||||
                            event.reply(dbot.t('syntax_error'));
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user