From 986f175c88ae14edb615bb6998d42b4cea1f29c8 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Sat, 25 Sep 2021 02:57:44 -0400 Subject: [PATCH] Kick Logging Fixed --- 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 33249b8..140760c 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -811,12 +811,12 @@ function DefaultGame::voteKickPlayer(%game, %admin, %client) messageAll('', '\c1Vote %6: \c0Yea: %1 Nay: %2 Total: %3 [%4%5]', %game.votesFor[%game.kickTeam], %game.votesAgainst[%game.kickTeam], %totalVotes, mfloor((%game.votesFor[%game.kickTeam] / %totalVotes) * 100), "%", %key); } + if(%cause $= "(admin)") + adminLog(%admin, " kicked " @ %game.kickClientNameBase @ " (" @ %game.kickGuid @ ")"); + %game.kickTeam = ""; %game.kickGuid = ""; %game.kickClientName = ""; - - if(%cause !$= "") - logEcho($AdminCl.nameBase @ ": " @ %name @ " (cl " @ %game.kickClient @ ") kicked " @ %cause, 1); } //------------------------------------------------------------------------------