1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 10:41:42 +00:00

Moved QUIT and VERSION messages into the config.

This commit is contained in:
Chris Rhodes 2013-02-17 22:28:22 -08:00
parent fe4fae0479
commit 74dea68158
3 changed files with 17 additions and 9 deletions

View file

@ -66,6 +66,12 @@ type Config struct {
// Set this to true to disable flood protection and false to re-enable
Flood bool
// Sent as the reply to a CTCP VERSION message
Version string
// Sent as the QUIT message.
QuitMessage string
}
func NewConfig(nick string, args ...string) *Config {
@ -82,6 +88,8 @@ func NewConfig(nick string, args ...string) *Config {
if len(args) > 1 && args[1] != "" {
cfg.Me.Name = args[1]
}
cfg.Version = "Powered by GoIRC"
cfg.QuitMessage = "GoBye!"
return cfg
}