Skip to content

Commit

Permalink
Add IsLimited method for UserStatus
Browse files Browse the repository at this point in the history
Signed-off-by: Aliwoto <[email protected]>
  • Loading branch information
ALiwoto committed Sep 12, 2021
1 parent 52cbf8f commit fbc3ea2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ratelimiter/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,11 @@ func (l *Limiter) checker() {
}

//---------------------------------------------------------

// IsLimited will check and see if the chat (or user) is
// limited by this limiter or not.
func (s *UserStatus) IsLimited() bool {
return s.limited
}

//---------------------------------------------------------

0 comments on commit fbc3ea2

Please sign in to comment.