mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Don't mute for 0 seconds (fixes #4816)
This commit is contained in:
parent
4337bcf7de
commit
eab52b3378
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue