1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-07-01 02:53:53 +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

@ -49,7 +49,7 @@ func (conn *Conn) Kick(channel, nick string, message ...string) {
func (conn *Conn) Quit(message ...string) {
msg := strings.Join(message, " ")
if msg == "" {
msg = "GoBye!"
msg = conn.cfg.QuitMessage
}
conn.out <- "QUIT :" + msg
}