[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.iavalley.cc.ia.us
Tue Dec 19 15:57:00 CST 2000


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2000-12-19 21:56:50 UTC

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

Log message:

applied toot's two patches (revengefix and the one to eggdev about XTRA info breaking)

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.35 eggdrop1.6/doc/UPDATES1.6:1.36
--- eggdrop1.6/doc/UPDATES1.6:1.35	Sun Dec 17 15:37:46 2000
+++ eggdrop1.6/doc/UPDATES1.6	Tue Dec 19 15:56:39 2000
@@ -4,6 +4,9 @@
 
 1.6.2
 Found by  Fixed by  What...
+          toot      fixed XTRA info from not working
+          toot      fixed my bug that made revenge-mode get set back to
+                    1 all the time.
           TaKeDa    we now understand negative limits (IRCnet allows this)
 TaKeDa    Fabian    Parameter missing for share.mod's status information and
                     a uff error message. Minor optimisations elsewhere.
Index: eggdrop1.6/src/mod/channels.mod/tclchan.c
diff -u eggdrop1.6/src/mod/channels.mod/tclchan.c:1.40 eggdrop1.6/src/mod/channels.mod/tclchan.c:1.41
--- eggdrop1.6/src/mod/channels.mod/tclchan.c:1.40	Sun Dec 17 15:37:46 2000
+++ eggdrop1.6/src/mod/channels.mod/tclchan.c	Tue Dec 19 15:56:40 2000
@@ -1,7 +1,7 @@
 /* 
  * tclchan.c -- part of channels.mod
  * 
- * $Id: tclchan.c,v 1.40 2000/12/17 21:37:46 guppy Exp $
+ * $Id: tclchan.c,v 1.41 2000/12/19 21:56:40 guppy Exp $
  */
 /* 
  * Copyright (C) 1997  Robey Pointer
@@ -923,10 +923,6 @@
   struct udef_struct *ul = udef;
   module_entry *me;
 
-  /* make revenge-mode default to 1
-   * not sure where else this can go -toot */
-  chan->revenge_mode = 1;
-
   for (i = 0; i < items; i++) {
     if (!strcmp(item[i], "need-op")) {
       i++;
@@ -1603,6 +1599,7 @@
     chan->flood_nick_thr = gfld_nick_thr;
     chan->flood_nick_time = gfld_nick_time;
     chan->stopnethack_mode = global_stopnethack_mode;
+    chan->revenge_mode = global_revenge_mode;
     chan->idle_kick = global_idle_kick;
     chan->aop_min = global_aop_min;
     chan->aop_max = global_aop_max;
Index: eggdrop1.6/src/userent.c
diff -u eggdrop1.6/src/userent.c:1.17 eggdrop1.6/src/userent.c:1.18
--- eggdrop1.6/src/userent.c:1.17	Sun Dec 10 09:10:27 2000
+++ eggdrop1.6/src/userent.c	Tue Dec 19 15:56:40 2000
@@ -2,7 +2,7 @@
  * userent.c -- handles:
  *   user-entry handling, new stylem more versatile.
  * 
- * $Id: userent.c,v 1.17 2000/12/10 15:10:27 guppy Exp $
+ * $Id: userent.c,v 1.18 2000/12/19 21:56:40 guppy Exp $
  */
 /* 
  * Copyright (C) 1997  Robey Pointer
@@ -132,7 +132,7 @@
     
     e->u.string = user_realloc (e->u.string, l + 1);
     
-    strncpyz (e->u.string, string, l);
+    strncpyz (e->u.string, string, l + 1);
     
     for (i = e->u.string; *i; i++)
       /* Allow bold, inverse, underline, color text here... 
@@ -715,7 +715,7 @@
   if (l > 500)
     l = 500;
   xk->key = user_malloc(l + 1);
-  strncpyz(xk->key, argv[3], l);
+  strncpyz(xk->key, argv[3], l + 1);
 
   if (argc == 5) {
     int k = strlen(argv[4]);
@@ -723,7 +723,7 @@
     if (k > 500 - l)
       k = 500 - l;
     xk->data = user_malloc(k + 1);
-    strncpyz(xk->data, argv[4], k);
+    strncpyz(xk->data, argv[4], k + 1);
   }
   xtra_set(u, e, xk);
   return TCL_OK;
@@ -813,7 +813,7 @@
   if (l > 500)
     l = 500;
   xk->key = user_malloc(l + 1);
-  strncpyz(xk->key, arg, l);
+  strncpyz(xk->key, arg, l + 1);
 
   if (buf[0]) {
     int k = strlen(buf);
@@ -821,7 +821,7 @@
     if (k > 500 - l)
       k = 500 - l;
     xk->data = user_malloc(k + 1);
-    strncpyz(xk->data, buf, k);
+    strncpyz(xk->data, buf, k + 1);
   }
   xtra_set(u, e, xk);
   return 1;
----------------------- End of diff -----------------------



More information about the Changes mailing list