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:
parent
9cfa92ede8
commit
1c917a19a7
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user