aboutsummaryrefslogtreecommitdiff
path: root/cmd_ping.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_ping.go')
-rw-r--r--cmd_ping.go12
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]))
-}