Skip to content

Commit

Permalink
restrict live import moves to imported games
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jul 13, 2014
1 parent 2d219b8 commit ec5c6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/importer/src/main/Live.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class Live(

def move(id: String, move: String, ip: String) =
GameRepo game id flatMap {
_ filter (_.playable) match {
_ filter (g => g.playable && g.imported) match {
case None => fufail("No such playing game: " + id)
case Some(game) => UciMove(move) match {
case None => move match {
Expand Down

0 comments on commit ec5c6a7

Please sign in to comment.