Merge pull request #2028 from slingamn/channels_taketwo.1

refactor of channel persistence to use UUIDs
This commit is contained in:
Shivaram Lingamneni 2023-01-15 08:01:37 -08:00 committed by GitHub
commit 4317016a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 804 additions and 653 deletions

View file

@ -1719,7 +1719,7 @@ func listHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respons
clientIsOp := client.HasRoleCapabs("sajoin")
if len(channels) == 0 {
for _, channel := range server.channels.Channels() {
for _, channel := range server.channels.ListableChannels() {
if !clientIsOp && channel.flags.HasMode(modes.Secret) && !channel.hasClient(client) {
continue
}