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
1 changed files with 1 additions and 1 deletions

View File

@ -2383,7 +2383,7 @@ func passHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Resp
// PING [params...] // PING [params...]
func pingHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool { 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 return false
} }