Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-03-28 02:27:34 UTC

Modified files:
     ChangeLog ircd/m_burst.c

Log message:

Avoid sending numeric oplevels when forwarding a -A channel's burst.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.578 ircu2.10/ChangeLog:1.579
--- ircu2.10/ChangeLog:1.578    Fri Mar 25 21:43:47 2005
+++ ircu2.10/ChangeLog  Sun Mar 27 18:27:23 2005
@@ -1,3 +1,8 @@
+2005-03-27  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/m_burst.c (ms_burst): Do not send numeric oplevels in a -A
+       channel when forwarding a channel burst line.
+
 2005-03-25  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/m_server.c (set_server_flags): New function.  Unlike the
Index: ircu2.10/ircd/m_burst.c
diff -u ircu2.10/ircd/m_burst.c:1.32 ircu2.10/ircd/m_burst.c:1.33
--- ircu2.10/ircd/m_burst.c:1.32        Wed Mar 23 17:37:39 2005
+++ ircu2.10/ircd/m_burst.c     Sun Mar 27 18:27:24 2005
@@ -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_burst.c,v 1.32 2005/03/24 01:37:39 entrope Exp $
+ * $Id: m_burst.c,v 1.33 2005/03/28 02:27:24 entrope Exp $
  */
 
 /*
@@ -472,7 +472,12 @@
            if (current_mode & CHFL_VOICE)
              nickstr[nickpos++] = 'v';
            if (current_mode & CHFL_CHANOP)
-             nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) - 
nickpos, "%u", oplevel);
+            {
+              if (chptr->mode.apass[0])
+               nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) 
- nickpos, "%u", oplevel);
+              else
+                nickstr[nickpos++] = 'o';
+            }
          } else if (current_mode & CHFL_CHANOP && oplevel != last_oplevel) { 
/* if just op level changed... */
            nickstr[nickpos++] = ':'; /* add a specifier */
            nickpos += ircd_snprintf(0, nickstr + nickpos, sizeof(nickstr) - 
nickpos, "%u", oplevel - last_oplevel);
----------------------- End of diff -----------------------

Reply via email to