From f44e922c42f87264c2101b7616bdcad6f8d67149 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 8 Dec 2022 15:27:02 +0100 Subject: [PATCH] downstream: use ERR_BADCHANMASK for invalid channel name It's more appropriate than ERR_NOSUCHCHANNEL. --- downstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downstream.go b/downstream.go index 0fe8dbe..19041c6 100644 --- a/downstream.go +++ b/downstream.go @@ -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