Registered channels should be eagerly created on startup, and should
remain (and be visible in LIST) even when they have no members.
This commit is contained in:
Shivaram Lingamneni 2021-02-04 15:26:03 -05:00
parent 1fad76b906
commit cc6be14c1d
3 changed files with 82 additions and 23 deletions

View file

@ -1614,9 +1614,8 @@ func listHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Resp
nick := client.Nick()
rplList := func(channel *Channel) {
if members, name, topic := channel.listData(); members != 0 {
rb.Add(nil, client.server.name, RPL_LIST, nick, name, strconv.Itoa(members), topic)
}
members, name, topic := channel.listData()
rb.Add(nil, client.server.name, RPL_LIST, nick, name, strconv.Itoa(members), topic)
}
clientIsOp := client.HasMode(modes.Operator)