Added ERR_CANNOTSENDTOCHAN

This commit is contained in:
Harry Jeffery 2013-08-27 19:40:14 +01:00
parent 9c7dc4d673
commit 70a17eb44d
2 changed files with 3 additions and 0 deletions

View File

@ -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) c.outputChan <- fmt.Sprintf(":%s 464 %s :Error, password incorrect", c.server.name, c.nick)
case errNoPriv: case errNoPriv:
c.outputChan <- fmt.Sprintf(":%s 481 %s :Permission denied", c.server.name, c.nick) 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])
} }
} }

View File

@ -79,4 +79,5 @@ const (
errNotReg errNotReg
errPassword errPassword
errNoPriv errNoPriv
errCannotSend
) )