|
@@ -207,7 +207,8 @@ func authenticateHandler(server *Server, client *Client, msg ircmsg.Message, rb
|
207
|
207
|
if session.sasl.mechanism == "" {
|
208
|
208
|
throttled, remainingTime := client.loginThrottle.Touch()
|
209
|
209
|
if throttled {
|
210
|
|
- rb.Add(nil, server.name, ERR_SASLFAIL, client.Nick(), fmt.Sprintf(client.t("Please wait at least %v and try again"), remainingTime))
|
|
210
|
+ rb.Add(nil, server.name, ERR_SASLFAIL, client.Nick(),
|
|
211
|
+ fmt.Sprintf(client.t("Please wait at least %v and try again"), remainingTime.Round(time.Millisecond)))
|
211
|
212
|
return false
|
212
|
213
|
}
|
213
|
214
|
|
|
@@ -1666,7 +1667,7 @@ func listHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons
|
1666
|
1667
|
config := server.Config()
|
1667
|
1668
|
if time.Since(client.ctime) < config.Channels.ListDelay && client.Account() == "" && !client.HasMode(modes.Operator) {
|
1668
|
1669
|
remaining := time.Until(client.ctime.Add(config.Channels.ListDelay))
|
1669
|
|
- rb.Notice(fmt.Sprintf(client.t("This server requires that you wait %v after connecting before you can use /LIST. You have %v left."), config.Channels.ListDelay, remaining))
|
|
1670
|
+ rb.Notice(fmt.Sprintf(client.t("This server requires that you wait %v after connecting before you can use /LIST. You have %v left."), config.Channels.ListDelay, remaining.Round(time.Millisecond)))
|
1670
|
1671
|
rb.Add(nil, server.name, RPL_LISTEND, client.Nick(), client.t("End of LIST"))
|
1671
|
1672
|
return false
|
1672
|
1673
|
}
|