From: Egor Date: Sun, 8 May 2022 10:41:39 +0000 (+0300) Subject: check +s in NAMES X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=c461a4861a30157a394a1c643e217fdbaeb7944f;p=patchyircd.git check +s in NAMES --- diff --git a/irc.c b/irc.c index f384baa..f3be84b 100644 --- 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);