Browse Source

Complete pattern match to prevent errors

Thomas Dy 11 years ago
parent
commit
c39d5f5ea3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/models/Taboo.scala

+ 2 - 0
app/models/Taboo.scala

@@ -136,11 +136,13 @@ class TabooGame(val chatActor: ActorRef) extends Actor {
         else if(round.monitors(username)) text match {
         else if(round.monitors(username)) text match {
           case "/taboo" | "/t" => roundActor ! Taboo(username)
           case "/taboo" | "/t" => roundActor ! Taboo(username)
           case "/correct" | "/c" => roundActor ! Correct(username)
           case "/correct" | "/c" => roundActor ! Correct(username)
+          case _ => Unit
         }
         }
 
 
       case None =>
       case None =>
         if(username == currentTeam.player) text match {
         if(username == currentTeam.player) text match {
           case "/start" | "/s" => self ! StartRound
           case "/start" | "/s" => self ! StartRound
+          case _ => Unit
         }
         }
     }
     }