Don't mute for 0 seconds (fixes #4816)

This commit is contained in:
def 2022-03-13 11:08:38 +01:00
parent 4337bcf7de
commit eab52b3378

View file

@ -466,6 +466,8 @@ bool CGameContext::TryMute(const NETADDR *pAddr, int Secs, const char *pReason,
void CGameContext::Mute(const NETADDR *pAddr, int Secs, const char *pDisplayName, const char *pReason, bool InitialChatDelay)
{
if(Secs <= 0)
return;
if(!TryMute(pAddr, Secs, pReason, InitialChatDelay))
return;
if(InitialChatDelay)