1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-16 01:59:18 -05:00

Fix self-targeting

Remove creation of penalty on mute expiration
This commit is contained in:
Amos
2022-10-14 15:21:18 +01:00
committed by RaidMax
parent bfad75d7eb
commit fe08463e2c
4 changed files with 19 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class MuteManager
if (clientMuteMeta.MuteState is MuteState.Unmuted && clientMuteMeta.CommandExecuted) return false;
if (!target.IsIngame && clientMuteMeta.MuteState is MuteState.Unmuting) return false;
if (clientMuteMeta.MuteState is not MuteState.Unmuting)
if (clientMuteMeta.MuteState is not MuteState.Unmuting || origin.ClientId != 1)
{
await CreatePenalty(MuteState.Unmuted, origin, target, DateTime.UtcNow, reason);
}