Added ERR_CANNOTSENDTOCHAN
This commit is contained in:
parent
9c7dc4d673
commit
70a17eb44d
@ -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])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,4 +79,5 @@ const (
|
|||||||
errNotReg
|
errNotReg
|
||||||
errPassword
|
errPassword
|
||||||
errNoPriv
|
errNoPriv
|
||||||
|
errCannotSend
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user