[cvslog] (2002-04-16 23:08:39 UTC) Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Tue Apr 16 18:09:00 CST 2002


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2002-04-16 23:08:39 UTC
Commited by: Federico Mennite <ite at techmonkeys.org>

Modified files:
     modules/irc/mode.c src/chan.h

Log message:

Fixed crashes relating to flushmodes (synch 1.6)

---------------------- diff included ----------------------
Index: eggdrop1.7/modules/irc/mode.c
diff -u eggdrop1.7/modules/irc/mode.c:1.11 eggdrop1.7/modules/irc/mode.c:1.12
--- eggdrop1.7/modules/irc/mode.c:1.11	Mon Apr  1 07:33:32 2002
+++ eggdrop1.7/modules/irc/mode.c	Tue Apr 16 18:08:28 2002
@@ -4,7 +4,7 @@
  *   channel mode changes and the bot's reaction to them
  *   setting and getting the current wanted channel modes
  *
- * $Id: mode.c,v 1.11 2002/04/01 13:33:32 ite Exp $
+ * $Id: mode.c,v 1.12 2002/04/16 23:08:28 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -110,7 +110,8 @@
 
   /* Do -{b,e,I} before +{b,e,I} to avoid the server ignoring overlaps */
   for (i = 0; i < modesperline; i++) {
-    if (chan->cmode[i].type & MINUS && postsize > strlen(chan->cmode[i].op)) {
+    if ((chan->cmode[i].type & MINUS) &&
+        postsize > strlen(chan->cmode[i].op)) {
       if (plus) {
         *p++ = '-', plus = 0;
       }
@@ -130,7 +131,8 @@
 
   /* now do all the + modes... */
   for (i = 0; i < modesperline; i++) {
-    if (chan->cmode[i].type & PLUS && postsize > strlen(chan->cmode[i].op)) {
+    if ((chan->cmode[i].type & PLUS) &&
+        postsize > strlen(chan->cmode[i].op)) {
       if (plus != 1) {
         *p++ = '+', plus = 1;
       }
Index: eggdrop1.7/src/chan.h
diff -u eggdrop1.7/src/chan.h:1.28 eggdrop1.7/src/chan.h:1.29
--- eggdrop1.7/src/chan.h:1.28	Thu Feb  7 16:19:04 2002
+++ eggdrop1.7/src/chan.h	Tue Apr 16 18:08:28 2002
@@ -3,7 +3,7 @@
  *   stuff common to chan.c and mode.c
  *   users.h needs to be loaded too
  *
- * $Id: chan.h,v 1.28 2002/02/07 22:19:04 wcc Exp $
+ * $Id: chan.h,v 1.29 2002/04/16 23:08:28 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -168,7 +168,7 @@
   int compat;			/* to prevent mixing old/new modes	*/
   struct {
     char *op;
-    char type;
+    int type;
   } cmode[6];			/* parameter-type mode changes -	*/
   /* detect floods */
   char floodwho[FLOOD_CHAN_MAX][81];
----------------------- End of diff -----------------------



More information about the Changes mailing list