Don't allow to kick an admin with super power enabled
authorunc0rr
Wed, 13 Jan 2016 19:38:03 +0300
changeset 11508 a4ad8a9e0f69
parent 11507 bd9a2f1b0080
child 11509 6a5bdf930edf
Don't allow to kick an admin with super power enabled
gameServer/HWProtoInRoomState.hs
--- a/gameServer/HWProtoInRoomState.hs	Sun Jan 10 00:45:13 2016 +0300
+++ b/gameServer/HWProtoInRoomState.hs	Wed Jan 13 19:38:03 2016 +0300
@@ -342,6 +342,7 @@
             isJust maybeClientId
             && (kickId /= thisClientId)
             && sameRoom
+            && (not $ hasSuperPower kickCl)
             && ((isNothing $ gameInfo rm) || notOnly2Players || teamsInGame kickCl == 0)
         ]