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
This commit is contained in:
zeratul0 2017-03-06 13:44:05 -05:00 committed by GitHub
parent 4701e767b6
commit d93e42a71c
1 changed files with 1 additions and 1 deletions

View File

@ -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;