From 3b23b5b9aa121664917499577a13248cde55e2c4 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Dec 2024 10:47:36 +0800 Subject: Pong should return server name as 1st argument --- cmd_ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd_ping.go b/cmd_ping.go index c5442b5..dc7131f 100644 --- a/cmd_ping.go +++ b/cmd_ping.go @@ -9,6 +9,6 @@ func handleClientPing(msg RMsg, client *Client) bool { client.Send(MakeMsg(self, ERR_NEEDMOREPARAMS, "PING", "Not enough parameters")) return true } - client.Send(MakeMsg(self, "PONG", msg.Params[0])) + client.Send(MakeMsg(self, "PONG", self.Name, msg.Params[0])) return true } -- cgit v1.2.3