From 7ae4e33cfb30c9fe7aea97114e47ff0fb4b239c4 Mon Sep 17 00:00:00 2001 From: Egor Date: Fri, 26 Jan 2024 12:34:13 +0200 Subject: [PATCH] LIST: show all channels to ircops --- src/irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.56.0