Skip to content

Commit

Permalink
Merge pull request lichess-org#8779 from benediktwerner/avoid-sandbag…
Browse files Browse the repository at this point in the history
…-warning-when-no-rating-diff

Don't send sandbag warnings when ratings didn't change
  • Loading branch information
ornicar authored Apr 28, 2021
2 parents 1bd3111 + b442712 commit 11a4929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mod/src/main/SandbagWatch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final private class SandbagWatch(
game.playedTurns <= {
if (game.variant == chess.variant.Atomic) 3
else 8
}
} && game.winner ?? (~_.ratingDiff > 0)
}

private object SandbagWatch {
Expand Down

0 comments on commit 11a4929

Please sign in to comment.