equal
deleted
inserted
replaced
365 thisRoomMasterId <- liftM masterID thisRoom |
365 thisRoomMasterId <- liftM masterID thisRoom |
366 let newAdminId = fromJust maybeClientId |
366 let newAdminId = fromJust maybeClientId |
367 let sameRoom = clientRoom rnc thisClientId == clientRoom rnc newAdminId |
367 let sameRoom = clientRoom rnc thisClientId == clientRoom rnc newAdminId |
368 return $ |
368 return $ |
369 if (not (master || serverAdmin)) then |
369 if (not (master || serverAdmin)) then |
370 [Warning $ loc "You not the room master or a server admin!"] |
370 [Warning $ loc "You're not the room master or a server admin!"] |
371 else if (isNothing maybeClientId) then |
371 else if (isNothing maybeClientId) then |
372 [Warning $ loc "Player is not online."] |
372 [Warning $ loc "Player is not online."] |
373 else if (Just newAdminId == thisRoomMasterId) then |
373 else if (Just newAdminId == thisRoomMasterId) then |
374 [Warning $ loc "You're already the room master."] |
374 [Warning $ loc "You're already the room master."] |
375 else if (not sameRoom) then |
375 else if (not sameRoom) then |