3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

setconfig prefix modules [#520]

This commit is contained in:
reality 2013-07-24 22:27:50 +00:00
parent aa40c78127
commit 8dd2a6a97c

View File

@ -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;