From d93e42a71c480428b26bac4092d3de64c83d3726 Mon Sep 17 00:00:00 2001 From: zeratul0 Date: Mon, 6 Mar 2017 13:44:05 -0500 Subject: [PATCH] Change fallback voteskip ratio to .5 from 0 moderators might make a mistake changing the skip ratio, causing it to fall back to 0% and allowing users to "skiptrain" before it is fixed --- src/channel/opts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel/opts.js b/src/channel/opts.js index c4d33612..9802a807 100644 --- a/src/channel/opts.js +++ b/src/channel/opts.js @@ -114,7 +114,7 @@ OptionsModule.prototype.handleSetOptions = function (user, data) { if ("voteskip_ratio" in data) { var ratio = parseFloat(data.voteskip_ratio); if (isNaN(ratio) || ratio < 0) { - ratio = 0; + ratio = 0.5; } this.opts.voteskip_ratio = ratio; sendUpdate = true;