1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2026-01-27 10:58:47 +00:00

Add an config param allowing to delay renicking if the previously tried nick was already in use

This commit is contained in:
Tamás Solymos 2026-01-05 17:24:43 +00:00 committed by GitHub
parent de089e2f58
commit 61d66da22e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -112,6 +112,9 @@ type Config struct {
// See DefaultNewNick implementation below for details.
NewNick func(string) string
// A delay in NewNick before actually sending the new nick command. Default is not set, so it's 0.
ReNickDelay time.Duration
// Client->server ping frequency, in seconds. Defaults to 3m.
// Set to 0 to disable client-side pings.
PingFreq time.Duration