[cvslog] (2008-11-01 00:40:13 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Fri Oct 31 18:40:13 CST 2008


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2008-11-01 00:40:13 UTC
Commited by: Tothwolf <tothwolf at techmonkeys.org>

Modified files:
     doc/Changes1.6 src/users.c

Log message:

Modified tell_user() to use YYYY-MM-DD ISO 8601 date format. This corrects the LAST date shown for the .whois and .match commands.
Fixes Bugzilla Bug # 470 "Dates in Whois/Match Don't Show Years"

Found by: BarkerJr / Patch by: Tothwolf

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/Changes1.6
diff -u eggdrop1.6/doc/Changes1.6:1.9 eggdrop1.6/doc/Changes1.6:1.10
--- eggdrop1.6/doc/Changes1.6:1.9	Fri Oct 31 18:55:10 2008
+++ eggdrop1.6/doc/Changes1.6	Fri Oct 31 19:40:03 2008
@@ -1,4 +1,4 @@
-$Id: Changes1.6,v 1.9 2008-10-31 23:55:10 tothwolf Exp $
+$Id: Changes1.6,v 1.10 2008-11-01 00:40:03 tothwolf Exp $
 
 Eggdrop Changes (since version 1.6.0)
 
@@ -6,6 +6,11 @@
 
 1.6.20 (CVS):
 
+  - Modified tell_user() to use YYYY-MM-DD ISO 8601 date format. This
+    corrects the LAST date shown for the .whois and .match commands.
+    Fixes Bugzilla Bug # 470 "Dates in Whois/Match Don't Show Years"
+    Found by: BarkerJr / Patch by: Tothwolf
+
   - Added .vbottree command help section to cmds2.help.
     Fixes Bugzilla Bug # 464 ".help vbottree not working"
     Found by: wanderer / Patch by: Tothwolf
Index: eggdrop1.6/src/users.c
diff -u eggdrop1.6/src/users.c:1.52 eggdrop1.6/src/users.c:1.53
--- eggdrop1.6/src/users.c:1.52	Fri Oct 31 17:07:14 2008
+++ eggdrop1.6/src/users.c	Fri Oct 31 19:40:03 2008
@@ -10,7 +10,7 @@
  *
  * dprintf'ized, 9nov1995
  *
- * $Id: users.c,v 1.52 2008-10-31 22:07:14 tothwolf Exp $
+ * $Id: users.c,v 1.53 2008-11-01 00:40:03 tothwolf Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -494,8 +494,8 @@
     strcpy(s1, "never");
   else {
     now2 = now - li->laston;
-    if (now2 > 86400)
-      egg_strftime(s1, 7, "%d %b", localtime(&li->laston));
+    if (now2 >= 86400)
+      egg_strftime(s1, 11, "%Y-%m-%d", localtime(&li->laston));
     else
       egg_strftime(s1, 6, "%H:%M", localtime(&li->laston));
   }
@@ -513,8 +513,8 @@
         strcpy(s1, "never");
       else {
         now2 = now - (ch->laston);
-        if (now2 > 86400)
-          egg_strftime(s1, 7, "%d %b", localtime(&ch->laston));
+        if (now2 >= 86400)
+          egg_strftime(s1, 11, "%Y-%m-%d", localtime(&ch->laston));
         else
           egg_strftime(s1, 6, "%H:%M", localtime(&ch->laston));
       }
----------------------- End of diff -----------------------



More information about the Changes mailing list