From: Egor Date: Fri, 26 Jan 2024 10:34:13 +0000 (+0200) Subject: LIST: show all channels to ircops X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=7ae4e33cfb30c9fe7aea97114e47ff0fb4b239c4;p=patchyircd.git LIST: show all channels to ircops --- diff --git a/src/irc.c b/src/irc.c index 0acedf5..b3f1acc 100644 --- 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) {