Modified rate limit conditions to exclude moderators (#3534)

This commit is contained in:
Aziz Rmadi 2024-01-24 12:27:38 -06:00 committed by GitHub
parent 8abddf5ced
commit b532b1545c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() {