[cvslog] Module eggdrop1.4: Change committed

cvslog cvs at tsss.iavalley.cc.ia.us
Fri Dec 1 14:47:00 CST 2000


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.4
Commit time: 2000-12-01 20:46:30 UTC

Modified files:
     doc/UPDATES1.4 src/patch.h src/mod/channels.mod/cmdschan.c

Log message:

guppy: dw's dynban patch

---------------------- diff included ----------------------
Index: eggdrop1.4/doc/UPDATES1.4
diff -u eggdrop1.4/doc/UPDATES1.4:1.107 eggdrop1.4/doc/UPDATES1.4:1.108
--- eggdrop1.4/doc/UPDATES1.4:1.107	Wed Nov 15 21:07:50 2000
+++ eggdrop1.4/doc/UPDATES1.4	Fri Dec  1 14:46:20 2000
@@ -4,6 +4,9 @@
 
 1.4.6
 Foundby   Fixedby   What....
+          dw        Do not set bans if they don't match someone in the channel
+                    and the channel is set +dynamicbans.
+          Eule      fixed crashes dealing with expired masks
 
 1.4.5 (November 15, 2000)
 Foundby   Fixedby   What....
Index: eggdrop1.4/src/mod/channels.mod/cmdschan.c
diff -u eggdrop1.4/src/mod/channels.mod/cmdschan.c:1.34 eggdrop1.4/src/mod/channels.mod/cmdschan.c:1.35
--- eggdrop1.4/src/mod/channels.mod/cmdschan.c:1.34	Sat Aug 26 09:13:26 2000
+++ eggdrop1.4/src/mod/channels.mod/cmdschan.c	Fri Dec  1 14:46:20 2000
@@ -2,7 +2,7 @@
  * cmdschan.c -- part of channels.mod
  *   commands from a user via dcc that cause server interaction
  *
- * $Id: cmdschan.c,v 1.34 2000/08/26 14:13:26 guppy Exp $
+ * $Id: cmdschan.c,v 1.35 2000/12/01 20:46:20 guppy Exp $
  */
 /*
  * Copyright (C) 1997  Robey Pointer
@@ -144,14 +144,18 @@
 		 dcc[idx].u.chat->con_chan, s, chan->name, par);
 	  dprintf(idx, "New %s ban: %s (%s)\n", chan->name, s, par);
 	}
-	add_mode(chan, '+', 'b', s);
+	/* Avoid unnesessary modes if you got +dynamicbans, and there is
+	 * no reason to set mode if irc.mod aint loaded. (dw 001120)
+	 */
+	if ((me = module_find("irc", 0, 0)))
+	  (me->funcs[IRC_RECHECK_CHANNEL])(chan, 1);
       } else {
 	u_addban(NULL, s, dcc[idx].nick, par,
 		 expire_time ? now + expire_time : 0, 0);
 	if (par[0] == '*') {
 	  par++;
-	  putlog(LOG_CMDS, "*", "#%s# (GLOBAL) +ban %s (%s) (sticky)", dcc[idx].nick,
-		 s, par);
+	  putlog(LOG_CMDS, "*", "#%s# (GLOBAL) +ban %s (%s) (sticky)",
+		 dcc[idx].nick, s, par);
 	  dprintf(idx, "New sticky ban: %s (%s)\n", s, par);
 	} else {
 	  putlog(LOG_CMDS, "*", "#%s# (GLOBAL) +ban %s (%s)", dcc[idx].nick,
@@ -159,10 +163,11 @@
 	  dprintf(idx, "New ban: %s (%s)\n", s, par);
 	}
 	chan = chanset;
-	while (chan != NULL) {
-	  add_mode(chan, '+', 'b', s);
-	  chan = chan->next;
-	}
+	if ((me = module_find("irc", 0, 0)))
+	  while (chan != NULL) {
+	    (me->funcs[IRC_RECHECK_CHANNEL])(chan, 1);
+	    chan = chan->next;
+	  }
       }
     }
   }
Index: eggdrop1.4/src/patch.h
diff -u eggdrop1.4/src/patch.h:1.193 eggdrop1.4/src/patch.h:1.194
--- eggdrop1.4/src/patch.h:1.193	Fri Dec  1 14:41:26 2000
+++ eggdrop1.4/src/patch.h	Fri Dec  1 14:46:20 2000
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  * 
- * $Id: patch.h,v 1.193 2000/12/01 20:41:26 guppy Exp $
+ * $Id: patch.h,v 1.194 2000/12/01 20:46:20 guppy Exp $
  */
 /* 
  * Copyright (C) 1997  Robey Pointer
@@ -40,11 +40,11 @@
 /*
  *
  */
-patch("975702273");	/* current unixtime */
+patch("975702857");	/* current unixtime */
 /*
  *
  */
-patch("expired");
+patch("dynban");
 /*
  *
  */
----------------------- End of diff -----------------------



More information about the Changes mailing list