From 70a17eb44d131de1ff61112fc21a9c257529abf5 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Tue, 27 Aug 2013 19:40:14 +0100 Subject: [PATCH] Added ERR_CANNOTSENDTOCHAN --- client.go | 2 ++ rosella.go | 1 + 2 files changed, 3 insertions(+) diff --git a/client.go b/client.go index c1d12ce..a86cec7 100644 --- a/client.go +++ b/client.go @@ -197,6 +197,8 @@ func (c *Client) reply(code replyCode, args ...string) { c.outputChan <- fmt.Sprintf(":%s 464 %s :Error, password incorrect", c.server.name, c.nick) case errNoPriv: c.outputChan <- fmt.Sprintf(":%s 481 %s :Permission denied", c.server.name, c.nick) + case errCannotSend: + c.outputChan <- fmt.Sprintf(":%s 404 %s %s :Cannot send to channel", c.server.name, c.nick, args[0]) } } diff --git a/rosella.go b/rosella.go index f799d20..4b71ab2 100644 --- a/rosella.go +++ b/rosella.go @@ -79,4 +79,5 @@ const ( errNotReg errPassword errNoPriv + errCannotSend )