# HG changeset patch # User unc0rr # Date 1369682439 -14400 # Node ID 1661c5ccb625b0199b099dad4d44c8f0498e7b65 # Parent 426aae3ffccde50b8dfff16e06ffae0db331b2cf Remove admin rights from old admin when he delegates room ownership diff -r 426aae3ffccd -r 1661c5ccb625 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]