3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

client: Ensure ERROR message is parsed when quitting

This commit is contained in:
Daniel Oaks 2017-04-17 23:05:47 +10:00
parent 9cfa92ede8
commit 1c917a19a7

View File

@ -438,6 +438,7 @@ func (client *Client) Quit(message string) {
if !client.quitMessageSent { if !client.quitMessageSent {
client.Send(nil, client.nickMaskString, "QUIT", message) client.Send(nil, client.nickMaskString, "QUIT", message)
client.Send(nil, "", "ERROR", message) client.Send(nil, "", "ERROR", message)
client.socket.Write("\r\n")
client.quitMessageSent = true client.quitMessageSent = true
} }
} }