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:
parent
9d03364a23
commit
33f8b21edd
@ -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" }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user