gameServer/Actions.hs
changeset 2343 3ab763dc14a3
parent 2341 408edb2f254c
child 2345 daf1785f2337
--- a/gameServer/Actions.hs	Wed Sep 02 08:45:15 2009 +0000
+++ b/gameServer/Actions.hs	Wed Sep 02 08:50:45 2009 +0000
@@ -194,7 +194,9 @@
 		if roomID client /= 0 then
 			if isMaster client then
 				if (gameinprogress room) && (playersIn room > 1) then
-					changeMaster
+					(changeMaster >>= (\state -> foldM processAction state
+						[AnswerOthersInRoom ["LEFT", nick client, msg],
+						RemoveClientTeams clID]))
 				else -- not in game
 					processAction (clID, serverInfo, clients, rooms) RemoveRoom
 			else -- not master