[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Wed Dec 19 23:02:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-20 05:01:17 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     src/misc.c

Log message:

applied my patch from eggdrop1.6 that dealt with cleaning up show_motd and a bug in show_banner that wasn't reseting help_subst

---------------------- diff included ----------------------
Index: eggdrop1.7/src/misc.c
diff -u eggdrop1.7/src/misc.c:1.54 eggdrop1.7/src/misc.c:1.55
--- eggdrop1.7/src/misc.c:1.54	Sat Dec  8 13:17:44 2001
+++ eggdrop1.7/src/misc.c	Wed Dec 19 23:01:06 2001
@@ -6,7 +6,7 @@
  *   help system
  *   motd display and %var substitution
  *
- * $Id: misc.c,v 1.54 2001/12/08 19:17:44 ite Exp $
+ * $Id: misc.c,v 1.55 2001/12/20 05:01:06 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1067,11 +1067,14 @@
 
   if (!is_file(motdfile))
     return;
+
   vv = fopen(motdfile, "r");
   if (!vv)
     return;
+
   get_user_flagrec(dcc[idx].user, &fr, dcc[idx].u.chat->con_chan);
   dprintf(idx, "\n");
+  /* reset the help_subst variables to their defaults */
   help_subst(NULL, NULL, 0,
 	     (dcc[idx].status & STAT_TELNET) ? 0 : HELP_IRC, NULL);
   while (!feof(vv)) {
@@ -1099,10 +1102,14 @@
 
   if (!is_file(bannerfile))
     return;
+
   vv = fopen(bannerfile, "r");
   if (!vv)
     return;
+
   get_user_flagrec(dcc[idx].user, &fr,dcc[idx].u.chat->con_chan);
+  /* reset the help_subst variables to their defaults */
+  help_subst(NULL, NULL, 0, 0, NULL);
   while(!feof(vv)) {
     fgets(s, 120, vv);
     if (!feof(vv)) {
----------------------- End of diff -----------------------



More information about the Changes mailing list