downstream: use ERR_BADCHANMASK for invalid channel name
It's more appropriate than ERR_NOSUCHCHANNEL.
This commit is contained in:
parent
6d64c164a7
commit
f44e922c42
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user