CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_06
Commit time: 2003-11-05 09:57:07 UTC
Modified files:
Tag: u2_10_11_06
ChangeLog ircd/m_whois.c
Log message:
Author: Isomer <[EMAIL PROTECTED]>
Log message:
Allow opers to see local +s channels in remote whois by prefixing them with a *
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.129.2.5 ircu2.10/ChangeLog:1.290.2.129.2.6
--- ircu2.10/ChangeLog:1.290.2.129.2.5 Wed Nov 5 01:33:44 2003
+++ ircu2.10/ChangeLog Wed Nov 5 01:56:56 2003
@@ -1,4 +1,8 @@
2003-11-05 Isomer <[EMAIL PROTECTED]>
+ * ircd/m_whois.c: On remote whois, show +s local channels with a *
+ prefix to opers.
+
+2003-11-05 Isomer <[EMAIL PROTECTED]>
* ircd/s_misc.c, ircd/s_user.c: added numnick to SNO_CONNEXIT message
(so you can match EXIT's to CONN's)
Index: ircu2.10/ircd/m_whois.c
diff -u ircu2.10/ircd/m_whois.c:1.19.2.11 ircu2.10/ircd/m_whois.c:1.19.2.11.2.1
--- ircu2.10/ircd/m_whois.c:1.19.2.11 Sat Nov 1 02:19:12 2003
+++ ircu2.10/ircd/m_whois.c Wed Nov 5 01:56:57 2003
@@ -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.19.2.11 2003/11/01 10:19:12 isomer Exp $
+ * $Id: m_whois.c,v 1.19.2.11.2.1 2003/11/05 09:56:57 isomer Exp $
*/
/*
@@ -152,7 +152,8 @@
{
chptr = chan->channel;
- if (!ShowChannel(sptr, chptr))
+ if (!(IsOper(sptr) && IsLocalChannel(chptr->chname))
+ && ShowChannel(sptr, chptr))
continue;
if (acptr != sptr && IsZombie(chan))
@@ -166,6 +167,8 @@
}
if (IsDeaf(acptr))
*(buf + len++) = '-';
+ if (IsOper(sptr) && !ShowChannel(sptr,chptr))
+ *(buf + len++) = '*';
if (IsZombie(chan))
{
*(buf + len++) = '!';
----------------------- End of diff -----------------------