Modified rate limit conditions to exclude moderators (#3534)
This commit is contained in:
parent
8abddf5ced
commit
b532b1545c
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user