Revision: 1937
          
http://undernet-ircu.svn.sourceforge.net/undernet-ircu/?rev=1937&view=rev
Author:   entrope
Date:     2010-01-07 03:06:13 +0000 (Thu, 07 Jan 2010)

Log Message:
-----------
Restrict the visibility of /silence lists (fixing SF #2701725).

Modified Paths:
--------------
    ircu2/branches/u2_10_12_branch/ChangeLog
    ircu2/branches/u2_10_12_branch/ircd/m_silence.c

Modified: ircu2/branches/u2_10_12_branch/ChangeLog
===================================================================
--- ircu2/branches/u2_10_12_branch/ChangeLog    2010-01-07 02:55:33 UTC (rev 
1936)
+++ ircu2/branches/u2_10_12_branch/ChangeLog    2010-01-07 03:06:13 UTC (rev 
1937)
@@ -1,5 +1,11 @@
 2010-01-06  Michael Poole <[email protected]>
 
+       * ircd/m_silence.c (m_silence): Only show the silence list for the
+       requesting client and for channel services, to help keep other
+       clients' servers hidden.
+
+2010-01-06  Michael Poole <[email protected]>
+
        * ircd/gline.c (gline_add): If a forced G-line has already
        expired, create it in a deactivated state.
 

Modified: ircu2/branches/u2_10_12_branch/ircd/m_silence.c
===================================================================
--- ircu2/branches/u2_10_12_branch/ircd/m_silence.c     2010-01-07 02:55:33 UTC 
(rev 1936)
+++ ircu2/branches/u2_10_12_branch/ircd/m_silence.c     2010-01-07 03:06:13 UTC 
(rev 1937)
@@ -289,7 +289,7 @@
   /* See if the user is requesting a silence list. */
   acptr = sptr;
   if (parc < 2 || EmptyString(parv[1]) || (acptr = FindUser(parv[1]))) {
-    if (cli_user(acptr)) {
+    if (cli_user(acptr) && ((acptr == sptr) || IsChannelService(acptr))) {
       for (sile = cli_user(acptr)->silence; sile; sile = sile->next) {
         send_reply(sptr, RPL_SILELIST, cli_name(acptr),
                    (sile->flags & BAN_EXCEPTION ? "~" : ""),  sile->banstr);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to