diff options
Diffstat (limited to 'cmd_ping.go')
-rw-r--r-- | cmd_ping.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cmd_ping.go b/cmd_ping.go index dc7131f..9da4ee9 100644 --- a/cmd_ping.go +++ b/cmd_ping.go @@ -4,11 +4,9 @@ func init() { commandHandlers["PING"] = handleClientPing } -func handleClientPing(msg RMsg, client *Client) bool { +func handleClientPing(msg RMsg, client *Client) error { if len(msg.Params) < 1 { - client.Send(MakeMsg(self, ERR_NEEDMOREPARAMS, "PING", "Not enough parameters")) - return true + return client.Send(MakeMsg(self, ERR_NEEDMOREPARAMS, "PING", "Not enough parameters")) } - client.Send(MakeMsg(self, "PONG", self.Name, msg.Params[0])) - return true + return client.Send(MakeMsg(self, "PONG", self.Name, msg.Params[0])) } |