[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Wed Oct 31 10:55:02 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-10-31 16:54:17 UTC
Commited by: Matthew Hallacy <poptix at techmonkeys.org>

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

Log message:

yum yum.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.202 eggdrop1.6/doc/UPDATES1.6:1.203
--- eggdrop1.6/doc/UPDATES1.6:1.202	Wed Oct 31 09:22:48 2001
+++ eggdrop1.6/doc/UPDATES1.6	Wed Oct 31 10:54:07 2001
@@ -1,11 +1,12 @@
-$Id: UPDATES1.6,v 1.202 2001/10/31 15:22:48 poptix Exp $
+$Id: UPDATES1.6,v 1.203 2001/10/31 16:54:07 poptix Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.7
 Found by  Fixed by  What...
-	  poptix    even more fixes for usage of argv[] (crashes)
+	  poptix    and more (tcldcc.c)
+	  poptix    even more fixes for usage of argv[] (crashes in tcluser.c)
 dfrank    stdarg    'chattr hand' no longer crashes (legacy bug)
           poptix    this should fix the banreason bug (Hey, i tested it too)
 zip       guppy     small fix for ircu servers that send ERROR: instead of ERROR :
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.573 eggdrop1.6/src/patch.h:1.574
--- eggdrop1.6/src/patch.h:1.573	Wed Oct 31 09:22:48 2001
+++ eggdrop1.6/src/patch.h	Wed Oct 31 10:54:07 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.573 2001/10/31 15:22:48 poptix Exp $
+ * $Id: patch.h,v 1.574 2001/10/31 16:54:07 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1004541483");		/* current unixtime */
+patch("1004547108");		/* current unixtime */
 /*
  *
  *
  */
-patch("argv2");
+patch("argv3");
 /*
  *
  *
Index: eggdrop1.6/src/tcldcc.c
diff -u eggdrop1.6/src/tcldcc.c:1.28 eggdrop1.6/src/tcldcc.c:1.29
--- eggdrop1.6/src/tcldcc.c:1.28	Mon May 14 11:17:00 2001
+++ eggdrop1.6/src/tcldcc.c	Wed Oct 31 10:54:07 2001
@@ -2,7 +2,7 @@
  * tcldcc.c -- handles:
  *   Tcl stubs for the dcc commands
  *
- * $Id: tcldcc.c,v 1.28 2001/05/14 16:17:00 guppy Exp $
+ * $Id: tcldcc.c,v 1.29 2001/10/31 16:54:07 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -594,7 +594,7 @@
   BADARGS(1, 2, " ?type?");
   for (i = 0; i < dcc_total; i++) {
     if (argc == 1 ||
-	(dcc[i].type && !egg_strcasecmp(dcc[i].type->name, argv[1]))) {
+	((argc == 2) && (dcc[i].type && !egg_strcasecmp(dcc[i].type->name, argv[1])))) {
       egg_snprintf(idxstr, sizeof idxstr, "%ld", dcc[i].sock);
       egg_snprintf(timestamp, sizeof timestamp, "%ld", dcc[i].timeval);
       if (dcc[i].type && dcc[i].type->display)
@@ -763,9 +763,7 @@
 
   BADARGS(2, 3, " ?via-bot? bot");
   strncpyz(bot, argv[1], sizeof bot);
-  if (argc == 2)
-     x = botlink("", -2, bot);
-  else {
+  if (argc == 3)
     x = 1;
     strncpyz(bot2, argv[2], sizeof bot2);
     i = nextbot(bot);
@@ -773,6 +771,8 @@
       x = 0;
     else
       botnet_send_link(i, botnetnick, bot, bot2);
+  else {
+     x = botlink("", -2, bot);
   }
   egg_snprintf(bot, sizeof bot, "%d", x);
   Tcl_AppendResult(irp, bot, NULL);
----------------------- End of diff -----------------------



More information about the Changes mailing list