mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 03:49:27 +01:00
fix #1928
LIST should not return ERR_NOSUCHCHANNEL for nonexistent channels
This commit is contained in:
parent
b1a5a47480
commit
172a6675ac
@ -1649,9 +1649,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…
Reference in New Issue
Block a user