]> PatchyGit - patchyircd.git/commitdiff
LIST: show all channels to ircops
authorEgor <egor@patchysicp.xyz>
Fri, 26 Jan 2024 10:34:13 +0000 (12:34 +0200)
committerEgor <egor@patchysicp.xyz>
Fri, 26 Jan 2024 10:34:13 +0000 (12:34 +0200)
src/irc.c

index 0acedf5..b3f1acc 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -1080,7 +1080,7 @@ saslcleanup:
                rpl_liststart(client), sendbuf(client);
                struct channel *chan;
                map_foreach(&channel_map, 0, &chan)
-                       if (!(chan->dmode & DMODE_SECRET) || map_get(&chan->members, client->key))
+                       if (client->umode & UMODE_OPER || !(chan->dmode & DMODE_SECRET) || map_get(&chan->members, client->key))
                                rpl_list(client, chan), sendbuf(client);
                rpl_listend(client), sendbuf(client);
        } else if(strcmp(command, "NAMES") == 0) {