]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Allow opers to see secret (+s) channels in LIST command
authorDNS777 <dns@rbose.org>
Tue, 25 Sep 2012 10:55:07 +0000 (12:55 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 25 Sep 2012 10:55:07 +0000 (12:55 +0200)
As long as 'MorePrivacy' isn't enabled in the configuration file, local
IRC operators can see secret (+s) channels when using the LIST command.

Closes bug #136.

src/ngircd/irc-channel.c

index 9e88e1bd0031de480a33d3ddfb5b447fed81d013..72fbdc242f6069cc4758dbda43cb666d2426feca 100644 (file)
@@ -669,7 +669,8 @@ IRC_LIST( CLIENT *Client, REQUEST *Req )
                        if (MatchCaseInsensitive(pattern, Channel_Name(chan))) {
                                /* Gotcha! */
                                if (!strchr(Channel_Modes(chan), 's')
-                                   || Channel_IsMemberOf(chan, from)) {
+                                   || Channel_IsMemberOf(chan, from)
+                                   || (!Conf_MorePrivacy && Client_OperByMe(Client))) {
                                        if (IRC_CheckListTooBig(from, count,
                                                                 MAX_RPL_LIST,
                                                                 "LIST"))