forked from GitHub/dbot
		
	save on admin commands
This commit is contained in:
		
							parent
							
								
									14db0b6eb6
								
							
						
					
					
						commit
						ada0d56b19
					
				| @ -83,8 +83,10 @@ var adminCommands = function(dbot) { | ||||
|         'listener': function(data) { | ||||
|             params = data.message.split(' '); | ||||
| 
 | ||||
|             if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin)  | ||||
|             if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin) { | ||||
|                 commands[params[0]](data, params); | ||||
|                 dbot.save(); | ||||
|             } | ||||
|         }, | ||||
| 
 | ||||
|         'on': 'PRIVMSG' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Luke Slater
						Luke Slater