From 56da91f23dea609493c8f32dba1ac876af09b07e Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Tue, 5 Oct 2021 14:24:08 -0400 Subject: [PATCH] Fixed Logging --- Classic/scripts/autoexec/VoteMenu.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index 6a7625d..96b46e3 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -330,7 +330,10 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % case "BanPlayer": if(%client.isSuperAdmin && !%arg1.isSuperAdmin) // we're a super admin, and our target isn't a super admin + { ban(%arg1, %client); // ban 'em + adminLog(%client, " has banned" SPC %arg1.nameBase @ "(" @ %arg1.guid @ ")."); + } return; // stop the function in its tracks case "VoteChangeMission": @@ -821,7 +824,7 @@ function DefaultGame::voteKickPlayer(%game, %admin, %client) } if(%cause $= "(admin)") - adminLog(%admin, " kicked " @ %game.kickClientNameBase @ " (" @ %game.kickGuid @ ")"); + adminLog(%admin, " kicked " @ %game.kickClientNameBase @ " (" @ %game.kickGuid @ ")."); %game.kickTeam = ""; %game.kickGuid = "";