From 5985f6374484557a95700371ceca872a43ec7c24 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 7 Nov 2023 14:50:55 +0000 Subject: [PATCH] Allow super users to kick anyone regardless of ranking. --- SharpChat/Commands/KickBanCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharpChat/Commands/KickBanCommand.cs b/SharpChat/Commands/KickBanCommand.cs index 8b88ae5..a307051 100644 --- a/SharpChat/Commands/KickBanCommand.cs +++ b/SharpChat/Commands/KickBanCommand.cs @@ -35,7 +35,7 @@ namespace SharpChat.Commands { return; } - if(banUser.Rank >= ctx.User.Rank && banUser != ctx.User) { + if(!ctx.User.IsSuper && banUser.Rank >= ctx.User.Rank && banUser != ctx.User) { ctx.Chat.SendTo(ctx.User, new LegacyCommandResponse(LCR.KICK_NOT_ALLOWED, true, banUser.LegacyName)); return; }