aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-08 10:47:36 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-08 10:47:36 +0800
commit3b23b5b9aa121664917499577a13248cde55e2c4 (patch)
tree323a798310c1424cd1720aaad2041ac89d8d67f8
parentProper UID handling (diff)
downloadmeseircd-3b23b5b9aa121664917499577a13248cde55e2c4.tar.gz
meseircd-3b23b5b9aa121664917499577a13248cde55e2c4.tar.zst
meseircd-3b23b5b9aa121664917499577a13248cde55e2c4.zip
Pong should return server name as 1st argument
-rw-r--r--cmd_ping.go2
1 files changed, 1 insertions, 1 deletions
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
}