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

PONG param 0 should be server name

fix #1248
This commit is contained in:
jesopo 2020-08-25 22:06:31 +00:00
parent 385993fb2d
commit 574b07513c

View File

@ -2383,7 +2383,7 @@ func passHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Resp
// PING [params...]
func pingHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
rb.Add(nil, server.name, "PONG", msg.Params...)
rb.Add(nil, server.name, "PONG", server.name, msg.Params[0])
return false
}