From d4f707d369e0cd22cda43213e1a13fa292c0eb7a Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 14 Apr 2012 16:08:24 +0200 Subject: [PATCH] fixed missing ENDOFNAMES reply (non-member performs /names #chan with #chan having +s set) --- ircd/m_names.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. */ -- 2.20.1