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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user