From 94f504b65e40ce983a67f21a77615df567ea2a09 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Fri, 9 Jun 2006 02:16:17 +0000 Subject: [PATCH] Fix /whois handling of secret local channels for locops. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1667 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/m_whois.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 89347bb..7fe342c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-08 Michael Poole + + * ircd/m_whois.c (do_whois): Prefix '*' to names of secret (local) + channels for locops as well as global opers. + 2006-06-08 Michael Poole * ircd/m_gline.c (ms_gline): Use final argument as G-line reason. diff --git a/ircd/m_whois.c b/ircd/m_whois.c index e9c1411..f38d6ad 100644 --- a/ircd/m_whois.c +++ b/ircd/m_whois.c @@ -176,7 +176,7 @@ static void do_whois(struct Client* sptr, struct Client *acptr, int parc) } if (IsDeaf(acptr)) *(buf + len++) = '-'; - if (IsOper(sptr) && !ShowChannel(sptr, chptr)) + if (!ShowChannel(sptr, chptr)) *(buf + len++) = '*'; if (IsDelayedJoin(chan) && (sptr != acptr)) *(buf + len++) = '<'; -- 2.20.1