change command: 'save' -> 'config save'. will have other config functions, rename method eventually
This commit is contained in:
		
							parent
							
								
									1edeb703b4
								
							
						
					
					
						commit
						0fc9a325fb
					
				| @ -128,7 +128,7 @@ class IrcAdmin(Module): | ||||
| 
 | ||||
|     def sub_save_config(self, connection, event, nick, userhost, replypath, what, admin_unlocked): | ||||
|         whats = what.split(' ') | ||||
|         if whats[0] == 'save' and admin_unlocked: | ||||
|         if whats[0] == 'config' and whats[1] == 'save' and admin_unlocked: | ||||
|             with open('dr.botzo.cfg', 'w') as cfg: | ||||
|                 self.config.write(cfg) | ||||
|             replystr = 'saved config file' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user