diff --git a/lib/channel/opts.js b/lib/channel/opts.js index 6fe0e8e5..7590972d 100644 --- a/lib/channel/opts.js +++ b/lib/channel/opts.js @@ -152,7 +152,7 @@ OptionsModule.prototype.handleSetOptions = function (user, data) { b = 1; } - var s = parseInt(data.chat_antiflood_params.sustained); + var s = parseFloat(data.chat_antiflood_params.sustained); if (isNaN(s) || s <= 0) { s = 1; }