From 4e72ef790c1276b52ab1f8b28a4f92baf062e6ce Mon Sep 17 00:00:00 2001 From: reverse Date: Sat, 29 Aug 2026 02:43:35 +0000 Subject: [PATCH] opers: gate NAMES secret-channel visibility on channels/auspex too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Completes the auspex coverage — NAMES now matches WHO/WHOIS/LIST (secret/ private channel members shown to channels/auspex holders, not any oper). --- src/channels.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/channels.rs b/src/channels.rs index ec4c64a..660f18f 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -1250,11 +1250,11 @@ impl Server { self.numeric(uid, RPL_ENDOFNAMES, &format!("{key} :End of /NAMES list")); return; }; - // +s (secret) / +p (private): members are hidden from non-members. Reply as - // if the channel were empty (opers still see it). + // +s (secret) / +p (private): members are hidden from non-members. Reply as if + // the channel were empty (channels/auspex still sees it, like WHO/WHOIS/LIST). if (ch.modes.secret || ch.modes.private) && !ch.members.contains_key(&uid) - && !self.is_oper(uid) + && !crate::modules::opertypes::has_priv(self, uid, crate::modules::opertypes::privs::CHANNELS_AUSPEX) { self.numeric( uid,