Warn players in room when admin lefts room
authorunc0rr
Thu, 03 Sep 2009 09:49:22 +0000
changeset 2346 f07fd1ac2c48
parent 2345 daf1785f2337
child 2347 3c25c1f6180e
Warn players in room when admin lefts room
gameServer/Actions.hs
--- a/gameServer/Actions.hs	Wed Sep 02 09:04:06 2009 +0000
+++ b/gameServer/Actions.hs	Thu Sep 03 09:49:22 2009 +0000
@@ -196,6 +196,7 @@
 				if (gameinprogress room) && (playersIn room > 1) then
 					(changeMaster >>= (\state -> foldM processAction state
 						[AnswerOthersInRoom ["LEFT", nick client, msg],
+						AnswerOthersInRoom ["WARNING", "Admin left the room"],
 						RemoveClientTeams clID]))
 				else -- not in game
 					processAction (clID, serverInfo, clients, rooms) RemoveRoom