From b532b1545c91af31af69d551f0d3c02f1fb101e1 Mon Sep 17 00:00:00 2001 From: Aziz Rmadi <46684200+armadi1809@users.noreply.github.com> Date: Wed, 24 Jan 2024 12:27:38 -0600 Subject: [PATCH] Modified rate limit conditions to exclude moderators (#3534) --- core/chat/chatclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chat/chatclient.go b/core/chat/chatclient.go index 64e850b58..fac4ed491 100644 --- a/core/chat/chatclient.go +++ b/core/chat/chatclient.go @@ -200,7 +200,7 @@ func (c *Client) close() { } func (c *Client) passesRateLimit() bool { - return c.rateLimiter.Allow() && !c.inTimeout + return c.User.IsModerator() || (c.rateLimiter.Allow() && !c.inTimeout) } func (c *Client) startChatRejectionTimeout() {