Skip to content

Commit 2c488f5

Browse files
authored
Merge pull request #1929 from slingamn/issue1928_list_err
fix #1928
2 parents ac2fc0d + 2fb8b83 commit 2c488f5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

irc/handlers.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,9 +1699,6 @@ func listHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons
16991699
for _, chname := range channels {
17001700
channel := server.channels.Get(chname)
17011701
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-
}
17051702
continue
17061703
}
17071704
if matcher.Matches(channel) {

0 commit comments

Comments
 (0)