Browse Source

fix #1928

LIST should not return ERR_NOSUCHCHANNEL for nonexistent channels
tags/v2.10.0-rc1
Shivaram Lingamneni 2 years ago
parent
commit
2fb8b836db
1 changed files with 0 additions and 3 deletions
  1. 0
    3
      irc/handlers.go

+ 0
- 3
irc/handlers.go View File

@@ -1699,9 +1699,6 @@ func listHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons
1699 1699
 		for _, chname := range channels {
1700 1700
 			channel := server.channels.Get(chname)
1701 1701
 			if channel == nil || (!clientIsOp && channel.flags.HasMode(modes.Secret) && !channel.hasClient(client)) {
1702
-				if len(chname) > 0 {
1703
-					rb.Add(nil, server.name, ERR_NOSUCHCHANNEL, client.nick, utils.SafeErrorParam(chname), client.t("No such channel"))
1704
-				}
1705 1702
 				continue
1706 1703
 			}
1707 1704
 			if matcher.Matches(channel) {

Loading…
Cancel
Save