forked from External/ergo
fix #1928
LIST should not return ERR_NOSUCHCHANNEL for nonexistent channels
This commit is contained in:
parent
ac2fc0da28
commit
2fb8b836db
1 changed files with 0 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue