From daf80ca716860d104f2b2b3511dc791679b85428 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 5 Apr 2003 21:26:18 +0000 Subject: [PATCH] - Fixed an oper bug with /names on a +s channel (#0000816). --- Changes | 1 + src/channel.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 3875d3418..8cf293ea7 100644 --- a/Changes +++ b/Changes @@ -2007,3 +2007,4 @@ seen. gmtime warning still there - Made throttling use DelListItem and fixed some confusing regarding undeffing of THROTTLING - Fixed a set::modes-on-join bug and fixed an oob read in config parser. +- Fixed an oper bug with /names on a +s channel (#0000816). diff --git a/src/channel.c b/src/channel.c index c21ba1a8c..2b2762091 100644 --- a/src/channel.c +++ b/src/channel.c @@ -4337,7 +4337,7 @@ CMD_FUNC(m_names) chptr = find_channel(para, (aChannel *)NULL); - if (!chptr || !ShowChannel(sptr, chptr)) + if (!chptr || (!ShowChannel(sptr, chptr) && !IsAnOper(sptr))) { sendto_one(sptr, rpl_str(RPL_ENDOFNAMES), me.name, parv[0], para);