From c13a7588e0f180d6fdefc1ae459872de647ad050 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Wed, 13 Apr 2022 16:42:15 -0400 Subject: [PATCH] Allow admins to admin Remove check for SA only to admin --- Classic/scripts/autoexec/VoteMenu.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index 0699749..79eb90e 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -322,10 +322,10 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % if(%arg1.isAdmin) // target is already an admin return; // can't vote to admin an admin! - if(%client.isAdmin) // our pal is an admin + if(%client.isAdmin && !%client.isSuperAdmin) // our pal is an admin (no superadmins) { - if(!%client.isSuperAdmin) // ... but not a super admin - return; // insufficient privileges + if(!$Host::AllowAdmin2Admin) + return; } else // not an admin {