mirror of
				https://github.com/reality/dbot.git
				synced 2025-11-04 05:57:31 +01:00 
			
		
		
		
	setconfig prefix modules [#520]
This commit is contained in:
		
							parent
							
								
									aa40c78127
								
							
						
					
					
						commit
						8dd2a6a97c
					
				@ -185,9 +185,10 @@ var commands = function(dbot) {
 | 
			
		||||
                            event.reply(dbot.t("config_array", { "alternate": "pushconfig" }));
 | 
			
		||||
                        }
 | 
			
		||||
                    } else {
 | 
			
		||||
                        topConfigPath = configPath.split('.')[0];
 | 
			
		||||
                        if(_.has(dbot.config.modules, topConfigPath)) {
 | 
			
		||||
                        configPath = configPath.split('.');
 | 
			
		||||
                        if(_.has(dbot.config.modules, configPath[0])) {
 | 
			
		||||
                            configPath.splice(0, 0, 'modules');
 | 
			
		||||
                            configPath = configPath.join('.');
 | 
			
		||||
                            event.params[1] = configPath.join('.');
 | 
			
		||||
                            this.commands['~showconfig'](event);
 | 
			
		||||
                            return;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user