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 )