[cvslog] (2002-09-01 05:08:01 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Sun Sep 1 00:09:00 CST 2002


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2002-09-01 05:08:01 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/patch.h src/mod/channels.mod/tclchan.c

Log message:

Using "channel set #chan chanmode $var" corrupted $var in Tcl8.x.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.401 eggdrop1.6/doc/UPDATES1.6:1.402
--- eggdrop1.6/doc/UPDATES1.6:1.401	Fri Aug 30 19:39:04 2002
+++ eggdrop1.6/doc/UPDATES1.6	Sun Sep  1 00:07:51 2002
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.401 2002/08/31 00:39:04 wcc Exp $
+$Id: UPDATES1.6,v 1.402 2002/09/01 05:07:51 wcc Exp $
 
 Changes in Eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.13
 Found by  Fixed by  What...
+[sL]      Wcc       channel set #chan chanmode $var corrupted $var in Tcl8.x
           blaster^  don't log "joined #chan but didn't want to" in certian cases where
                     the channel was newly removed or set inactive
           Wcc       cosmetic changes to share_stick_[exempt/invite/ban]
Index: eggdrop1.6/src/mod/channels.mod/tclchan.c
diff -u eggdrop1.6/src/mod/channels.mod/tclchan.c:1.62 eggdrop1.6/src/mod/channels.mod/tclchan.c:1.63
--- eggdrop1.6/src/mod/channels.mod/tclchan.c:1.62	Fri Aug  2 18:50:38 2002
+++ eggdrop1.6/src/mod/channels.mod/tclchan.c	Sun Sep  1 00:07:51 2002
@@ -1,7 +1,7 @@
 /*
  * tclchan.c -- part of channels.mod
  *
- * $Id: tclchan.c,v 1.62 2002/08/02 23:50:38 wcc Exp $
+ * $Id: tclchan.c,v 1.63 2002/09/01 05:07:51 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1018,6 +1018,7 @@
       old_mode_mns_prot = chan->mode_mns_prot,
       old_mode_pls_prot = chan->mode_pls_prot;
   struct udef_struct *ul = udef;
+  char s[121];
   module_entry *me;
 
   for (i = 0; i < items; i++) {
@@ -1073,9 +1074,9 @@
 	  Tcl_AppendResult(irp, "channel chanmode needs argument", NULL);
 	return TCL_ERROR;
       }
-      if (strlen(item[i]) > 120)
-	item[i][120] = 0;
-      set_mode_protect(chan, item[i]);
+      strncpy(s, item[i], 120);
+      s[120] = 0;
+      set_mode_protect(chan, s);
     } else if (!strcmp(item[i], "idle-kick")) {
       i++;
       if (i >= items) {
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.815 eggdrop1.6/src/patch.h:1.816
--- eggdrop1.6/src/patch.h:1.815	Thu Aug 29 22:07:04 2002
+++ eggdrop1.6/src/patch.h	Sun Sep  1 00:07:51 2002
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.815 2002/08/30 03:07:04 wcc Exp $
+ * $Id: patch.h,v 1.816 2002/09/01 05:07:51 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1030676419");		/* current unixtime */
+patch("1030856653");		/* current unixtime */
 /*
  *
  *
  */
-patch("join-complain");
+patch("chanset-corruption");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list