Allow super users to kick anyone regardless of ranking.

This commit is contained in:
flash 2023-11-07 14:50:55 +00:00
parent a9ca3705ad
commit 5985f63744
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}