summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--src/hash.c3
2 files changed, 3 insertions, 1 deletions
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 ||