This commit is contained in:
Thibault Duplessis 2014-01-05 12:02:23 +01:00
parent c9851c74c6
commit f44b3d008c
2 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,7 @@ import lila.game.{ Game, GameRepo, Pov }
private[round] final class CheatDetector {
def apply(game: Game): Fu[Option[Color]] = interresting(game) ?? {
def apply(game: Game): Fu[Option[Color]] = interesting(game) ?? {
GameRepo findMirror game map {
_ ?? { mirror
mirror.players find (p p.userId ?? game.userIds.contains) match {
@ -24,6 +24,6 @@ private[round] final class CheatDetector {
private val TURNS_MODULUS = 10
private def interresting(game: Game) =
private def interesting(game: Game) =
game.rated && game.turns > 0 && (game.turns % TURNS_MODULUS == 0)
}

1
todo
View file

@ -118,6 +118,7 @@ chat mod can query anybody
chat system messages compaction
redirect user to stored language
fix auto cheat detection
clarkey improvement list: http://pastebin.com/c8Zmdw7t
deploy
------