From 8e1b62d0630b80890e0f3236132af14aa39aba42 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 25 Oct 2013 20:21:04 +0000 Subject: - Administrators can now see +s channels in /LIST git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2496 82007160-df01-0410-b94d-b575c5fd34c7 --- NEWS | 1 + src/hash.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 5d53d5a..2e8015d 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ o) Add -fstack-protector to CFLAGS if available. Basically checks for buffer overflows/stack-smashing attacks o) When using anope 1.9 services, /WHOIS now shows the account name of a registered/identified client +o) Administrators can now see +s channels in /LIST -- ircd-hybrid-8.1.7 Release Notes diff --git a/src/hash.c b/src/hash.c index 206d593..a7fc19e 100644 --- a/src/hash.c +++ b/src/hash.c @@ -762,7 +762,8 @@ static void list_one_channel(struct Client *source_p, struct Channel *chptr, struct ListTask *list_task) { - if (SecretChannel(chptr) && !IsMember(source_p, chptr)) + if (SecretChannel(chptr) && + !(IsMember(source_p, chptr) || HasUMode(source_p, UMODE_ADMIN))) return; if (dlink_list_length(&chptr->members) < list_task->users_min || dlink_list_length(&chptr->members) > list_task->users_max || -- cgit