]> PatchyGit - patchyircd.git/commitdiff
check +s in NAMES
authorEgor <egor@patchysicp.xyz>
Sun, 8 May 2022 10:41:39 +0000 (13:41 +0300)
committerEgor <egor@patchysicp.xyz>
Sun, 8 May 2022 10:41:39 +0000 (13:41 +0300)
irc.c

diff --git a/irc.c b/irc.c
index f384baa..f3be84b 100644 (file)
--- a/irc.c
+++ b/irc.c
@@ -624,8 +624,7 @@ int processPacket(struct client_data *client, char *source, char *command, int a
                        if (p)
                                *p = '\0';
                        struct channel *chan = findChannel(channel);
-                       if (chan) {
-                               // TODO: check +s mode
+                       if (chan && (!(chan->dmode & DMODE_SECRET) || trie_get(&chan->members, client->key))) {
                                channel_sendnames(client, chan);
                        } else {
                                rpl_endofnames(client, channel);