Unset room restrictions on player/team joins when changing room admin
authorunc0rr
Tue, 04 Sep 2012 12:16:36 +0400
changeset 7664 4bc4b739f6e0
parent 7663 16e1422aee8e
child 7665 e556b44f5bd8
Unset room restrictions on player/team joins when changing room admin
gameServer/Actions.hs
--- a/gameServer/Actions.hs	Tue Sep 04 11:09:23 2012 +0400
+++ b/gameServer/Actions.hs	Tue Sep 04 12:16:36 2012 +0400
@@ -246,7 +246,7 @@
     oldRoomName <- io $ room'sM rnc name ri
     let newRoomName = nick newMaster
     mapM_ processAction [
-        ModifyRoom (\r -> r{masterID = newMasterId, name = newRoomName}),
+        ModifyRoom (\r -> r{masterID = newMasterId, name = newRoomName, isRestrictedJoins = False, isRestrictedTeams = False}),
         ModifyClient2 newMasterId (\c -> c{isMaster = True}),
         AnswerClients [sendChan newMaster] ["ROOM_CONTROL_ACCESS", "1"]
         ]