forked from GitHub/dbot
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" }));
|
event.reply(dbot.t("config_array", { "alternate": "pushconfig" }));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
topConfigPath = configPath.split('.')[0];
|
configPath = configPath.split('.');
|
||||||
if(_.has(dbot.config.modules, topConfigPath)) {
|
if(_.has(dbot.config.modules, configPath[0])) {
|
||||||
configPath.splice(0, 0, 'modules');
|
configPath.splice(0, 0, 'modules');
|
||||||
|
configPath = configPath.join('.');
|
||||||
event.params[1] = configPath.join('.');
|
event.params[1] = configPath.join('.');
|
||||||
this.commands['~showconfig'](event);
|
this.commands['~showconfig'](event);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user