On remote whois, show +s local channels with a * prefix to opers.
authorMichael Poole <mdpoole@troilus.org>
Sun, 16 May 2004 02:42:36 +0000 (02:42 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sun, 16 May 2004 02:42:36 +0000 (02:42 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1064 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_whois.c

index 05ebbf242014afd63df5b162c93cacb694f8136d..2532b4936f09c3c72e8df192e8a3054bc5e98bbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-05-15  Isomer <isomer@undernet.org>
+
+       [Original ChangeLog date: 2003-11-05 -MDP]
+
+       * ircd/m_whois.c: On remote whois, show +s local channels with a *
+       prefix to opers.
+
 2004-05-15  Michael Poole <mdpoole@troilus.org>
 
        * include/gline.h, ircd/gline.c, ircd/s_err.c: Forward port a lot
index 81d42f41d7c883f873ec14f83666791e3dc14613..0230e8a81ed4794702c5ceb182135de8313eaeb7 100644 (file)
@@ -152,7 +152,8 @@ static void do_whois(struct Client* sptr, struct Client *acptr, int parc)
     {
        chptr = chan->channel;
        
-       if (!ShowChannel(sptr, chptr))
+       if (!ShowChannel(sptr, chptr)
+           && !(IsOper(sptr) && IsLocalChannel(chptr->chname)))
           continue;
           
        if (acptr != sptr && IsZombie(chan))
@@ -166,6 +167,8 @@ static void do_whois(struct Client* sptr, struct Client *acptr, int parc)
        }
        if (IsDeaf(acptr))
          *(buf + len++) = '-';
+       if (IsOper(sptr) && !ShowChannel(sptr, chptr))
+         *(buf + len++) = '*';
        if (IsDelayedJoin(chan) && (sptr != acptr))
          *(buf + len++) = '<';
        else if (IsChanOp(chan))