diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-30 01:23:40 +0000 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-30 01:23:40 +0000 |
commit | dce03955174abe5ad83c01c930e3bf47fe39d8ce (patch) | |
tree | cf4cddc3f83bc6eb9efd5be959d349fa47606c84 /cmd_ping.go | |
parent | Reformat (diff) | |
download | meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.tar.gz meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.tar.zst meseircd-dce03955174abe5ad83c01c930e3bf47fe39d8ce.zip |
Revamp
Diffstat (limited to 'cmd_ping.go')
-rw-r--r-- | cmd_ping.go | 12 |
1 files changed, 0 insertions, 12 deletions
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])) -} |