From dce03955174abe5ad83c01c930e3bf47fe39d8ce Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 30 Dec 2024 01:23:40 +0000 Subject: Revamp --- cmd_ping.go | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 cmd_ping.go (limited to 'cmd_ping.go') diff --git a/cmd_ping.go b/cmd_ping.go deleted file mode 100644 index 951233e..0000000 --- a/cmd_ping.go +++ /dev/null @@ -1,12 +0,0 @@ -package main - -func init() { - CommandHandlers["PING"] = handleClientPing -} - -func handleClientPing(msg RMsg, client *Client) error { - if len(msg.Params) < 1 { - return client.Send(MakeMsg(self, ERR_NEEDMOREPARAMS, "PING", "Not enough parameters")) - } - return client.Send(MakeMsg(self, "PONG", self.Name, msg.Params[0])) -} -- cgit v1.2.3