3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-28 23:19:30 +01:00

Merge pull request #1929 from slingamn/issue1928_list_err

fix #1928
This commit is contained in:
Shivaram Lingamneni 2022-04-07 18:21:55 -04:00 committed by GitHub
commit 2c488f5ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1699,9 +1699,6 @@ func listHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons
for _, chname := range channels { for _, chname := range channels {
channel := server.channels.Get(chname) channel := server.channels.Get(chname)
if channel == nil || (!clientIsOp && channel.flags.HasMode(modes.Secret) && !channel.hasClient(client)) { 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 continue
} }
if matcher.Matches(channel) { if matcher.Matches(channel) {