mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
round wait times to the nearest millisecond
This commit is contained in:
parent
1e6dee15b2
commit
f72a6fa011
3 changed files with 5 additions and 4 deletions
|
|
@ -811,7 +811,7 @@ func nsGroupHandler(service *ircService, server *Server, client *Client, command
|
|||
func nsLoginThrottleCheck(service *ircService, client *Client, rb *ResponseBuffer) (success bool) {
|
||||
throttled, remainingTime := client.checkLoginThrottle()
|
||||
if throttled {
|
||||
service.Notice(rb, fmt.Sprintf(client.t("Please wait at least %v and try again"), remainingTime))
|
||||
service.Notice(rb, fmt.Sprintf(client.t("Please wait at least %v and try again"), remainingTime.Round(time.Millisecond)))
|
||||
}
|
||||
return !throttled
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue