Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2004-05-16 02:42:47 UTC

Modified files:
     ChangeLog ircd/m_whois.c

Log message:

On remote whois, show +s local channels with a * prefix to opers.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.414 ircu2.10/ChangeLog:1.415
--- ircu2.10/ChangeLog:1.414    Sat May 15 19:33:46 2004
+++ ircu2.10/ChangeLog  Sat May 15 19:42:36 2004
@@ -1,3 +1,10 @@
+2004-05-15  Isomer <[EMAIL PROTECTED]>
+
+       [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 <[EMAIL PROTECTED]>
 
        * include/gline.h, ircd/gline.c, ircd/s_err.c: Forward port a lot
Index: ircu2.10/ircd/m_whois.c
diff -u ircu2.10/ircd/m_whois.c:1.30 ircu2.10/ircd/m_whois.c:1.31
--- ircu2.10/ircd/m_whois.c:1.30        Sat May 15 11:39:34 2004
+++ ircu2.10/ircd/m_whois.c     Sat May 15 19:42:36 2004
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_whois.c,v 1.30 2004/05/15 18:39:34 entrope Exp $
+ * $Id: m_whois.c,v 1.31 2004/05/16 02:42:36 entrope Exp $
  */
 
 /*
@@ -152,7 +152,8 @@
     {
        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 @@
        }
        if (IsDeaf(acptr))
          *(buf + len++) = '-';
+       if (IsOper(sptr) && !ShowChannel(sptr, chptr))
+         *(buf + len++) = '*';
        if (IsDelayedJoin(chan) && (sptr != acptr))
          *(buf + len++) = '<';
        else if (IsChanOp(chan))
----------------------- End of diff -----------------------

Reply via email to