forked from GitHub/dbot
config rather than currentOption
This commit is contained in:
parent
9d03364a23
commit
33f8b21edd
@ -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" }));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user