[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Sun Dec 16 08:41:02 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-12-16 14:40:27 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/botcmd.c src/patch.h

Log message:

added BarkerJr's patch, also please do not use C++ comments in your patches

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.248 eggdrop1.6/doc/UPDATES1.6:1.249
--- eggdrop1.6/doc/UPDATES1.6:1.248	Fri Dec 14 12:48:23 2001
+++ eggdrop1.6/doc/UPDATES1.6	Sun Dec 16 08:40:17 2001
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.248 2001/12/14 18:48:23 guppy Exp $
+$Id: UPDATES1.6,v 1.249 2001/12/16 14:40:17 guppy Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.8
 Found by  Fixed by  What...
+          BarkerJr  only show fake alerts once every 10 seconds to prevent flooding
 DFrank    guppy     small make install bug related to doc cleanups
           Wcc       major cleanup of config files and related documents
           BarkerJr  updated doc/MODULES a bit
Index: eggdrop1.6/src/botcmd.c
diff -u eggdrop1.6/src/botcmd.c:1.21 eggdrop1.6/src/botcmd.c:1.22
--- eggdrop1.6/src/botcmd.c:1.21	Sat Jun 30 01:29:55 2001
+++ eggdrop1.6/src/botcmd.c	Sun Dec 16 08:40:17 2001
@@ -3,7 +3,7 @@
  *   commands that comes across the botnet
  *   userfile transfer and update commands from sharebots
  *
- * $Id: botcmd.c,v 1.21 2001/06/30 06:29:55 guppy Exp $
+ * $Id: botcmd.c,v 1.22 2001/12/16 14:40:17 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -79,16 +79,22 @@
 
 static void fake_alert(int idx, char *item, char *extra)
 {
+  static unsigned long lastfake;	/* The last time fake_alert was used */
+
+  if (now - lastfake > 10) {	
+    /* Don't fake_alert more than once every 10secs */
 #ifndef NO_OLD_BOTNET
-  if (b_numver(idx) < NEAT_BOTNET)
-    dprintf(idx, "chat %s NOTICE: %s (%s != %s).\n",
+    if (b_numver(idx) < NEAT_BOTNET)
+      dprintf(idx, "chat %s NOTICE: %s (%s != %s).\n",
 	    botnetnick, NET_FAKEREJECT, item, extra);
-  else
+    else
 #endif
-    dprintf(idx, "ct %s NOTICE: %s (%s != %s).\n",
+      dprintf(idx, "ct %s NOTICE: %s (%s != %s).\n",
 	    botnetnick, NET_FAKEREJECT, item, extra);
-  putlog(LOG_BOTS, "*", "%s %s (%s != %s).", dcc[idx].nick, NET_FAKEREJECT,
+    putlog(LOG_BOTS, "*", "%s %s (%s != %s).", dcc[idx].nick, NET_FAKEREJECT,
 	 item, extra);
+    lastfake = now;
+  }
 }
 
 /* chan <from> <chan> <text>
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.624 eggdrop1.6/src/patch.h:1.625
--- eggdrop1.6/src/patch.h:1.624	Fri Dec 14 12:48:23 2001
+++ eggdrop1.6/src/patch.h	Sun Dec 16 08:40:17 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.624 2001/12/14 18:48:23 guppy Exp $
+ * $Id: patch.h,v 1.625 2001/12/16 14:40:17 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1008355617");		/* current unixtime */
+patch("1008513523");		/* current unixtime */
 /*
  *
  *
  */
-patch("installerror");
+patch("fakemsg");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list