[eggheads-patches] PATCH: help_subst.patch

Fabian Knittel fknittel at gmx.de
Thu Oct 21 11:47:22 CST 1999


[ help_subst.patch ]

"/msg bot HELP" was returning rubbish for only-+o users.
This was caused by an unterminated/initialised string in
help_subst(). This patch - you probably guessed it -
fixes that.

Fabian
-------------- next part --------------
diff -urN eggdrop1.3~/doc/UPDATES1.3 eggdrop1.3/doc/UPDATES1.3
--- eggdrop1.3~/doc/UPDATES1.3	Wed Oct 20 20:19:18 1999
+++ eggdrop1.3/doc/UPDATES1.3	Wed Oct 20 20:18:26 1999
@@ -4,6 +4,7 @@
 
 1.3.29
 Foundby   Fixedby   What....
+dw	  Fabian    help_subst had broken columnated sections handling
 	  Fabian    fixed crash in german core language file
 	  Fabian    removed newline from "msg already queued" message
 James	  Fabian    infinite loop in tcl_do_masklist()
diff -urN eggdrop1.3~/src/misc.c eggdrop1.3/src/misc.c
--- eggdrop1.3~/src/misc.c	Wed Oct 20 15:57:50 1999
+++ eggdrop1.3/src/misc.c	Wed Oct 20 20:15:23 1999
@@ -868,6 +868,7 @@
 	    blind &= ~1;
 	    subwidth = 70;
 	    if (cols) {
+	      sub[0] = 0;
 	      subst_addcol(sub, "\377");
 	      nfree(colstr);
 	      colstr = NULL;


More information about the Patches mailing list