[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sun Dec 16 08:50:03 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-16 14:49:00 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 fakemsg alert patch from eggdrop1.6

---------------------- diff included ----------------------
Index: eggdrop1.7/doc/UPDATES1.6
diff -u eggdrop1.7/doc/UPDATES1.6:1.169 eggdrop1.7/doc/UPDATES1.6:1.170
--- eggdrop1.7/doc/UPDATES1.6:1.169	Thu Dec 13 23:48:37 2001
+++ eggdrop1.7/doc/UPDATES1.6	Sun Dec 16 08:48:50 2001
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.169 2001/12/14 05:48:37 guppy Exp $
+$Id: UPDATES1.6,v 1.170 2001/12/16 14:48:50 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
           BarkerJr  updated doc/MODULES a bit
           Wcc       show the user port as users instead of telnet and the bot port
                     as a bot port instead of a relay port
Index: eggdrop1.7/src/botcmd.c
diff -u eggdrop1.7/src/botcmd.c:1.26 eggdrop1.7/src/botcmd.c:1.27
--- eggdrop1.7/src/botcmd.c:1.26	Sun Dec  9 19:35:14 2001
+++ eggdrop1.7/src/botcmd.c	Sun Dec 16 08:48:50 2001
@@ -3,7 +3,7 @@
  *   commands that comes across the botnet
  *   userfile transfer and update commands from sharebots
  *
- * $Id: botcmd.c,v 1.26 2001/12/10 01:35:14 ite Exp $
+ * $Id: botcmd.c,v 1.27 2001/12/16 14:48:50 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",
-	    botnetnick, _("Fake message rejected"), item, extra);
-  else
+    if (b_numver(idx) < NEAT_BOTNET)
+      dprintf(idx, "chat %s NOTICE: %s (%s != %s).\n",
+	      botnetnick, _("Fake message rejected"), item, extra);
+    else
 #endif
-    dprintf(idx, "ct %s NOTICE: %s (%s != %s).\n",
-	    botnetnick, _("Fake message rejected"), item, extra);
-  putlog(LOG_BOTS, "*", "%s %s (%s != %s).", dcc[idx].nick, _("Fake message rejected"),
-	 item, extra);
+      dprintf(idx, "ct %s NOTICE: %s (%s != %s).\n",
+	      botnetnick, _("Fake message rejected"), item, extra);
+    putlog(LOG_BOTS, "*", "%s %s (%s != %s).", dcc[idx].nick, _("Fake message rejected"),
+	   item, extra);
+    lastfake = now;
+  }
 }
 
 /* chan <from> <chan> <text>
Index: eggdrop1.7/src/patch.h
diff -u eggdrop1.7/src/patch.h:1.556 eggdrop1.7/src/patch.h:1.557
--- eggdrop1.7/src/patch.h:1.556	Thu Dec 13 23:48:38 2001
+++ eggdrop1.7/src/patch.h	Sun Dec 16 08:48:50 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.556 2001/12/14 05:48:38 guppy Exp $
+ * $Id: patch.h,v 1.557 2001/12/16 14:48:50 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,17 +41,17 @@
  *
  *
  */
-patch("1008308872");		/* current unixtime */
+patch("1008513768");		/* current unixtime */
 /*
  *
  *
  */
-patch("modulesupdate");
+patch("fakemsg");
 /*
  *
  *
  */
-patch("modulesupdate");
+patch("fakemsg");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list