config rather than currentOption

This commit is contained in:
reality 2013-05-17 12:02:38 +00:00
parent 9d03364a23
commit 33f8b21edd

View File

@ -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" }));
}