gameServer/HWProtoInRoomState.hs
changeset 6753 e95b1f62d0de
parent 6738 dd98869d74b4
child 6756 344d32bb1328
--- a/gameServer/HWProtoInRoomState.hs	Tue Feb 28 21:25:36 2012 -0500
+++ b/gameServer/HWProtoInRoomState.hs	Wed Feb 29 23:44:49 2012 +0400
@@ -210,6 +210,7 @@
     cl <- thisClient
     rm <- thisRoom
     chans <- roomClientsChans
+    let clTeams = map teamname . filter (\t -> teamowner t == nick cl) . teams $ rm
 
     if isJust $ gameInfo rm then
         if isMaster cl && isCorrect then
@@ -224,7 +225,7 @@
                 : UnreadyRoomClients
                 : answerRemovedTeams chans rm
             else if not isCorrect then
-                return [RemoveClientTeams clId]
+                return $ map SendTeamRemovalMessage clTeams
                 else
                 return []
         else