From eab52b3378b6d68488c1c7d384065f7c2bcca8ec Mon Sep 17 00:00:00 2001 From: def Date: Sun, 13 Mar 2022 11:08:38 +0100 Subject: [PATCH] Don't mute for 0 seconds (fixes #4816) --- src/game/server/ddracecommands.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/server/ddracecommands.cpp b/src/game/server/ddracecommands.cpp index d2de73cbf..5657ffcae 100644 --- a/src/game/server/ddracecommands.cpp +++ b/src/game/server/ddracecommands.cpp @@ -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)