mirror of https://github.com/calzoneman/sync.git
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:
parent
4701e767b6
commit
d93e42a71c
|
@ -114,7 +114,7 @@ OptionsModule.prototype.handleSetOptions = function (user, data) {
|
||||||
if ("voteskip_ratio" in data) {
|
if ("voteskip_ratio" in data) {
|
||||||
var ratio = parseFloat(data.voteskip_ratio);
|
var ratio = parseFloat(data.voteskip_ratio);
|
||||||
if (isNaN(ratio) || ratio < 0) {
|
if (isNaN(ratio) || ratio < 0) {
|
||||||
ratio = 0;
|
ratio = 0.5;
|
||||||
}
|
}
|
||||||
this.opts.voteskip_ratio = ratio;
|
this.opts.voteskip_ratio = ratio;
|
||||||
sendUpdate = true;
|
sendUpdate = true;
|
||||||
|
|
Loading…
Reference in New Issue