[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Tue Oct 16 20:59:01 CST 2001


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

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

Log message:

* Bad argv[] use in tcl_userlist

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.193 eggdrop1.6/doc/UPDATES1.6:1.194
--- eggdrop1.6/doc/UPDATES1.6:1.193	Sun Oct 14 11:12:57 2001
+++ eggdrop1.6/doc/UPDATES1.6	Tue Oct 16 20:58:34 2001
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.193 2001/10/14 16:12:57 poptix Exp $
+$Id: UPDATES1.6,v 1.194 2001/10/17 01:58:34 poptix Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.7
 Found by  Fixed by  What...
+          poptix    bad pointers are evil in tcl_userlist
           poptix    re-fix adduser overflow
           Tothwolf  don't attempt to flood check server notices
           Tothwolf  display global bans, exempts and invites even if
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.565 eggdrop1.6/src/patch.h:1.566
--- eggdrop1.6/src/patch.h:1.565	Sun Oct 14 13:10:31 2001
+++ eggdrop1.6/src/patch.h	Tue Oct 16 20:58:35 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.565 2001/10/14 18:10:31 poptix Exp $
+ * $Id: patch.h,v 1.566 2001/10/17 01:58:35 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1003082755");		/* current unixtime */
+patch("1003283556");		/* current unixtime */
 /*
  *
  *
  */
-patch("adduser3");
+patch("userlist");
 /*
  *
  *
Index: eggdrop1.6/src/tcluser.c
diff -u eggdrop1.6/src/tcluser.c:1.22 eggdrop1.6/src/tcluser.c:1.23
--- eggdrop1.6/src/tcluser.c:1.22	Sat Jun 30 01:29:55 2001
+++ eggdrop1.6/src/tcluser.c	Tue Oct 16 20:58:35 2001
@@ -2,7 +2,7 @@
  * tcluser.c -- handles:
  *   Tcl stubs for the user-record-oriented commands
  *
- * $Id: tcluser.c,v 1.22 2001/06/30 06:29:55 guppy Exp $
+ * $Id: tcluser.c,v 1.23 2001/10/17 01:58:35 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -342,7 +342,11 @@
   for (u = userlist; u; u = u->next) {
     if (argc >= 2) {
       user.match = FR_GLOBAL | FR_CHAN | FR_BOT | (argc == 3 ? 0 : FR_ANYWH);
-      get_user_flagrec(u, &user, argv[2]);	/* argv[2] == NULL for argc = 2 ;) */
+      if (argc == 2) 
+	      get_user_flagrec(u, &user, NULL);
+      else
+	      get_user_flagrec(u, &user, argv[2]);
+
       if (flagrec_eq(&plus, &user) && !(f && flagrec_eq(&minus, &user)))
 	ok = 1;
       else
----------------------- End of diff -----------------------



More information about the Changes mailing list