forked from External/ergo
fix #1507
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:
parent
1fad76b906
commit
cc6be14c1d
3 changed files with 82 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue