gameServer/HWProtoLobbyState.hs
changeset 8486 9a65baafd7d7
parent 8403 fbc6e7602e05
child 8519 98e2dbdda8c0
--- a/gameServer/HWProtoLobbyState.hs	Sun Feb 10 01:45:25 2013 +0400
+++ b/gameServer/HWProtoLobbyState.hs	Sun Feb 10 01:52:13 2013 +0400
@@ -135,13 +135,14 @@
 
 handleCmd_lobby ["FOLLOW", asknick] = do
     (_, rnc) <- ask
+    clChan <- liftM sendChan thisClient
     ci <- clientByNick asknick
     let ri = clientRoom rnc $ fromJust ci
-    let clRoom = room rnc ri
+    let roomName = name $ room rnc ri
     if isNothing ci || ri == lobbyId then
         return []
         else
-        handleCmd_lobby ["JOIN_ROOM", name clRoom]
+        liftM ((:) (AnswerClients [clChan] ["JOINING", roomName])) $ handleCmd_lobby ["JOIN_ROOM", roomName]
 
     ---------------------------
     -- Administrator's stuff --