X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_names.c;h=1951922084696784a743848495bad15e328af11f;hb=9c8711e502f30d7e1925d1f6568a13d80568741f;hp=9e67b325a3191c175e33608992a06d599da6eb5b;hpb=b8402b9ef585580454491088f9581a1c3a8ca8ef;p=ircu2.10.12-pk.git diff --git a/ircd/m_names.c b/ircd/m_names.c index 9e67b32..1951922 100644 --- a/ircd/m_names.c +++ b/ircd/m_names.c @@ -141,8 +141,11 @@ void do_names(struct Client* sptr, struct Channel* chptr, int filter) flag = 1; needs_space = 0; - if (!ShowChannel(sptr, chptr)) /* Don't list private channels unless we are on them. */ + if (!ShowChannel(sptr, chptr)) { /* Don't list private channels unless we are on them. */ + if (filter&NAMES_EON) + send_reply(sptr, RPL_ENDOFNAMES, chptr->chname); return; + } /* Iterate over all channel members, and build up the list. */