diff --git a/modules/admin/commands.js b/modules/admin/commands.js index 3cd10c6..55adce9 100644 --- a/modules/admin/commands.js +++ b/modules/admin/commands.js @@ -174,11 +174,11 @@ var commands = function(dbot) { } // Convert to integer type is config item integer - if(_.isNumber(currentOption)) { + if(_.isNumber(config)) { newOption = parseInt(newOption); } - if(_.isArray(currentOption)) { + if(_.isArray(config)) { event.reply(dbot.t("config_array", { "alternate": "pushconfig" })); }