# HG changeset patch
# User unc0rr
# Date 1452703083 -10800
# Node ID a4ad8a9e0f69828fe5099b66ee40ad3c15f74566
# Parent  bd9a2f1b0080b8fab0754d9bb5a68cffb333a936
Don't allow to kick an admin with super power enabled

diff -r bd9a2f1b0080 -r a4ad8a9e0f69 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)
         ]