From 574b07513c56d71dbffa51497160730492451e6f Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 25 Aug 2020 22:06:31 +0000 Subject: [PATCH] PONG param 0 should be server name fix #1248 --- irc/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/handlers.go b/irc/handlers.go index 77e67c83..8f8f7d81 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -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 }