3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-23 18:44:14 +01:00

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 // Convert to integer type is config item integer
if(_.isNumber(currentOption)) { if(_.isNumber(config)) {
newOption = parseInt(newOption); newOption = parseInt(newOption);
} }
if(_.isArray(currentOption)) { if(_.isArray(config)) {
event.reply(dbot.t("config_array", { "alternate": "pushconfig" })); event.reply(dbot.t("config_array", { "alternate": "pushconfig" }));
} }