downstream: use ERR_BADCHANMASK for invalid channel name

It's more appropriate than ERR_NOSUCHCHANNEL.
This commit is contained in:
Simon Ser 2022-12-08 15:27:02 +01:00
parent 6d64c164a7
commit f44e922c42

View file

@ -1818,7 +1818,7 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
if name == "" || strings.ContainsAny(name, illegalChanChars) {
dc.SendMessage(&irc.Message{
Prefix: dc.srv.prefix(),
Command: irc.ERR_NOSUCHCHANNEL,
Command: irc.ERR_BADCHANMASK,
Params: []string{name, "Invalid channel name"},
})
continue