Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2004-10-12 18:07:22 UTC

Modified files:
     ircd/m_burst.c ChangeLog

Log message:

Wipe out all modes in a wiped-out channel by default.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.484 ircu2.10/ChangeLog:1.485
--- ircu2.10/ChangeLog:1.484    Sat Oct  9 08:42:03 2004
+++ ircu2.10/ChangeLog  Tue Oct 12 11:07:10 2004
@@ -1,3 +1,8 @@
+2004-10-12  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/m_burst.c: Mask off channel modes in a wiped-out channel by
+       default rather than by listing which should be wiped out.
+
 2004-10-09  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/m_server.c: Forward port checks for leaf and hub config
Index: ircu2.10/ircd/m_burst.c
diff -u ircu2.10/ircd/m_burst.c:1.25 ircu2.10/ircd/m_burst.c:1.26
--- ircu2.10/ircd/m_burst.c:1.25        Mon Sep 27 06:20:22 2004
+++ ircu2.10/ircd/m_burst.c     Tue Oct 12 11:07:10 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_burst.c,v 1.25 2004/09/27 13:20:22 entrope Exp $
+ * $Id: m_burst.c,v 1.26 2004/10/12 18:07:10 entrope Exp $
  */
 
 /*
@@ -274,9 +274,7 @@
     modebuf_init(mbuf = &modebuf, &me, cptr, chptr,
                 MODEBUF_DEST_CHANNEL | MODEBUF_DEST_NOKEY);
     modebuf_mode(mbuf, MODE_DEL | chptr->mode.mode); /* wipeout modes */
-    chptr->mode.mode &= ~(MODE_ADD | MODE_DEL | MODE_PRIVATE | MODE_SECRET |
-                         MODE_MODERATED | MODE_TOPICLIMIT | MODE_INVITEONLY |
-                         MODE_NOPRIVMSGS | MODE_DELJOINS);
+    chptr->mode.mode &= MODE_LISTED | MODE_BURSTADDED | MODE_WASDELJOINS;
 
     parse_flags |= (MODE_PARSE_SET | MODE_PARSE_WIPEOUT); /* wipeout keys */
 
----------------------- End of diff -----------------------

Reply via email to