mirror of
				https://github.com/reality/dbot.git
				synced 2025-11-04 11:27:54 +01:00 
			
		
		
		
	command can stand being run without quotes!
This commit is contained in:
		
							parent
							
								
									5419a664dc
								
							
						
					
					
						commit
						0ff2a43c07
					
				@ -16,9 +16,13 @@ var command = function(dbot) {
 | 
			
		||||
    this.listener = function(event) {
 | 
			
		||||
        var commandName = event.params[0];
 | 
			
		||||
        if(!_.has(dbot.commands, commandName)) {
 | 
			
		||||
            commandName = '~';
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
            if(_.has(dbot.modules, 'quotes')) {
 | 
			
		||||
                commandName = '~';
 | 
			
		||||
            } else {
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
        } 
 | 
			
		||||
        
 | 
			
		||||
        if(this.api.isBanned(event.user, commandName)) {
 | 
			
		||||
            event.reply(dbot.t('command_ban', {'user': event.user})); 
 | 
			
		||||
        } else {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user