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:
parent
fe4fae0479
commit
74dea68158
3 changed files with 17 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue