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

Merge pull request #1249 from jesopo/pong-params

PONG param 0 should be server name
This commit is contained in:
Shivaram Lingamneni 2020-09-05 22:30:50 -07:00 committed by GitHub
commit bfb3fd702a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}