From 33f8b21edd975b7f7a19d40dd642c755c42113c4 Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 17 May 2013 12:02:38 +0000 Subject: [PATCH] config rather than currentOption --- modules/admin/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" })); }