[cvslog] (2003-01-18 04:24:51 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Fri Jan 17 22:25:00 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2003-01-18 04:24:51 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     help/cmds1.help src/misc.c src/patch.h

Log message:

Fixed incorrect help information for +host. Non-+m/+t users cannot add hosts
to their own accounts. Found by Nilsy.

---------------------- diff included ----------------------
Index: eggdrop1.6/help/cmds1.help
diff -u eggdrop1.6/help/cmds1.help:1.11 eggdrop1.6/help/cmds1.help:1.12
--- eggdrop1.6/help/cmds1.help:1.11	Sat Dec  1 15:45:10 2001
+++ eggdrop1.6/help/cmds1.help	Fri Jan 17 22:24:41 2003
@@ -10,9 +10,6 @@
    a password for themselves the first time they link.  If the bot
    has a separate port for bots and users they should be separated
    with a slash (/).
-%{help=+host}
-###  %b+host%b <hostmask>
-   Allows you to add a host for yourself.
 %{help=+host}%{+m|m}
 ###  %b+host%b <nickname> <hostmask>
    Adds a hostmask to a user's record on the bot.  The hostmasks
Index: eggdrop1.6/src/misc.c
diff -u eggdrop1.6/src/misc.c:1.53 eggdrop1.6/src/misc.c:1.54
--- eggdrop1.6/src/misc.c:1.53	Mon Dec 23 20:30:05 2002
+++ eggdrop1.6/src/misc.c	Fri Jan 17 22:24:41 2003
@@ -7,7 +7,7 @@
  *   help system
  *   motd display and %var substitution
  *
- * $Id: misc.c,v 1.53 2002/12/24 02:30:05 wcc Exp $
+ * $Id: misc.c,v 1.54 2003/01/18 04:24:41 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -484,13 +484,15 @@
   int i, type, tsl;
   char *format, *chname, s[LOGLINELEN], s1[256], *out, ct[81], *s2, stamp[33];
   va_list va;
-  struct tm *t = localtime(&now);
+  time_t now2 = time(NULL);
+  struct tm *t;
 
   type = EGG_VARARGS_START(int, arg1, va);
   chname = va_arg(va, char *);
   format = va_arg(va, char *);
 
   /* Create the timestamp */
+  t = localtime(&now2);
   egg_strftime(&stamp[0], 32, LOG_TS, t);
   sprintf(&stamp[0], "%s ", stamp);
   tsl = strlen(stamp);
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.872 eggdrop1.6/src/patch.h:1.873
--- eggdrop1.6/src/patch.h:1.872	Fri Jan 17 19:58:05 2003
+++ eggdrop1.6/src/patch.h	Fri Jan 17 22:24:41 2003
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.872 2003/01/18 01:58:05 wcc Exp $
+ * $Id: patch.h,v 1.873 2003/01/18 04:24:41 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1042854837");		/* current unixtime */
+patch("1042863831");		/* current unixtime */
 /*
  *
  *
  */
-patch("transfer-close");
+patch("plshosthelp");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list