[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sat Dec 1 10:34:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-01 16:33:48 UTC
Commited by: Federico Mennite <ite at techmonkeys.org>

Modified files:
     src/tcluser.c

Log message:

Fixed more potential crashes in botattr command. Patch by TaKeDa <takeda at eggheads.w.pl>

---------------------- diff included ----------------------
Index: eggdrop1.7/src/tcluser.c
diff -u eggdrop1.7/src/tcluser.c:1.30 eggdrop1.7/src/tcluser.c:1.31
--- eggdrop1.7/src/tcluser.c:1.30	Sat Dec  1 10:03:48 2001
+++ eggdrop1.7/src/tcluser.c	Sat Dec  1 10:33:38 2001
@@ -2,7 +2,7 @@
  * tcluser.c -- handles:
  *   Tcl stubs for the user-record-oriented commands
  *
- * $Id: tcluser.c,v 1.30 2001/12/01 16:03:48 ite Exp $
+ * $Id: tcluser.c,v 1.31 2001/12/01 16:33:38 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -190,7 +190,10 @@
   } else {
     user.match = FR_BOT;
     chan = NULL;
-    chg = NULL;
+    if (argc < 3)
+      chg = NULL;
+    else
+      chg argv[2];
   }
   if (chan && !findchan_by_dname(chan)) {
     Tcl_AppendResult(irp, "no such channel", NULL);
----------------------- End of diff -----------------------



More information about the Changes mailing list