mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-23 07:38:10 -07:00
don't send prefix on server-originated string coded replies
This commit is contained in:
+2
-2
@@ -175,7 +175,7 @@ func (client *Client) Touch() {
|
||||
}
|
||||
|
||||
func (client *Client) Idle() {
|
||||
client.replies <- RplPing(client.server, client)
|
||||
client.replies <- RplPing(client)
|
||||
|
||||
if client.quitTimer == nil {
|
||||
client.quitTimer = time.AfterFunc(QUIT_TIMEOUT, client.connectionTimeout)
|
||||
@@ -304,7 +304,7 @@ func (client *Client) Quit(message string) {
|
||||
return
|
||||
}
|
||||
|
||||
client.replies <- RplError(client.server, "connection closed")
|
||||
client.replies <- RplError("connection closed")
|
||||
client.replies <- EOF
|
||||
|
||||
client.hasQuit = true
|
||||
|
||||
Reference in New Issue
Block a user