From 2fb8b836dbaf49d6ecef8d3656edf64f3b8137f1 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Thu, 7 Apr 2022 11:44:23 -0400 Subject: [PATCH] fix #1928 LIST should not return ERR_NOSUCHCHANNEL for nonexistent channels --- irc/handlers.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/irc/handlers.go b/irc/handlers.go index e777acce..a1145f1d 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -1699,9 +1699,6 @@ func listHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons for _, chname := range channels { channel := server.channels.Get(chname) if channel == nil || (!clientIsOp && channel.flags.HasMode(modes.Secret) && !channel.hasClient(client)) { - if len(chname) > 0 { - rb.Add(nil, server.name, ERR_NOSUCHCHANNEL, client.nick, utils.SafeErrorParam(chname), client.t("No such channel")) - } continue } if matcher.Matches(channel) {