gameServer/Actions.hs
changeset 2408 41ebdb5f1e6e
parent 2403 6c5d504af2ba
child 2551 01eb81cd3198
--- a/gameServer/Actions.hs	Wed Oct 07 14:37:42 2009 +0000
+++ b/gameServer/Actions.hs	Wed Oct 07 17:01:40 2009 +0000
@@ -250,7 +250,7 @@
 				clID,
 				serverInfo,
 				adjust (\cl -> cl{isMaster = True}) newMasterId clients,
-				adjust (\r -> r{name = newRoomName}) rID rooms
+				adjust (\r -> r{masterID = newMasterId, name = newRoomName}) rID rooms
 				)
 		newRoomName = nick newMasterClient
 		otherPlayersSet = IntSet.delete clID (playersIDs room)
@@ -262,6 +262,7 @@
 	let newServerInfo = serverInfo {nextRoomID = newID}
 	let room = newRoom{
 			roomUID = newID,
+			masterID = clID,
 			name = roomName,
 			password = roomPassword,
 			roomProto = (clientProto client)