Remove admin rights from old admin when he delegates room ownership
authorunc0rr
Mon, 27 May 2013 23:20:39 +0400
changeset 9060 1661c5ccb625
parent 9059 426aae3ffccd
child 9061 38e8787483db
Remove admin rights from old admin when he delegates room ownership
gameServer/Actions.hs
--- a/gameServer/Actions.hs	Mon May 27 14:41:48 2013 -0400
+++ b/gameServer/Actions.hs	Mon May 27 23:20:39 2013 +0400
@@ -220,6 +220,7 @@
                 , isRegisteredOnly = False}
                 )
         , ModifyClient2 newMasterId (\c -> c{isMaster = True})
+        , ModifyClient (\c -> c{isMaster = False})
         , AnswerClients [sendChan newMaster] ["ROOM_CONTROL_ACCESS", "1"]
         , AnswerClients thisRoomChans ["CLIENT_FLAGS", "-h", oldMaster]
         , AnswerClients thisRoomChans ["CLIENT_FLAGS", "+h", nick newMaster]