X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/13ae2f4b6904ebf7b8160902f9ffeb80f7585ed2..8097430a810ac1535fe5304f74991b16ff58b064:/modules/m_list.c diff --git a/modules/m_list.c b/modules/m_list.c index db397a2..ba83d89 100644 --- a/modules/m_list.c +++ b/modules/m_list.c @@ -103,7 +103,6 @@ static void safelist_check_cliexit(hook_data_client_exit * hdata) } /* m_list() - * parv[0] = sender prefix * parv[1] = channel * * XXX - With SAFELIST, do we really need to continue pacing? @@ -138,7 +137,6 @@ static int m_list(struct Client *client_p, struct Client *source_p, int parc, co } /* mo_list() - * parv[0] = sender prefix * parv[1] = channel */ static int mo_list(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) @@ -324,7 +322,7 @@ static void safelist_channel_named(struct Client *source_p, const char *name) return; } - if (ShowChannel(source_p, chptr)) + if (!SecretChannel(chptr) || IsMember(source_p, chptr)) sendto_one(source_p, form_str(RPL_LIST), me.name, source_p->name, chptr->chname, rb_dlink_list_length(&chptr->members), chptr->topic == NULL ? "" : chptr->topic);