[cvslog] [CVS] Module eggdrop1.8: Change committed

cvs at eggheads.org cvs at eggheads.org
Thu Nov 10 16:10:20 CST 2011


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.8
Branch tags: gettext
Commit time: 2011-11-10 22:10:20 UTC
Committer  : Thomas Sader <thommey at gmail.com>

Modified files:
  Tag: gettext
     THANKS doc/Changes1.8 src/patch.h src/tcldcc.c

Log message:

Fixed the format specifier for the Tcl [traffic] command.

---------------------- diff included ----------------------
Index: eggdrop1.8/THANKS
diff -u eggdrop1.8/THANKS:1.8.2.3 eggdrop1.8/THANKS:1.8.2.4
--- eggdrop1.8/THANKS:1.8.2.3	Tue Oct 25 10:49:19 2011
+++ eggdrop1.8/THANKS	Thu Nov 10 16:10:09 2011
@@ -1,4 +1,4 @@
-$Id: THANKS,v 1.8.2.3 2011/10/25 16:49:19 thommey Exp $:
+$Id: THANKS,v 1.8.2.4 2011/11/10 22:10:09 thommey Exp $:
 
 Eggdrop Developers and Contributors
 Last revised: January 27, 2011
@@ -575,6 +575,7 @@
 Vassago        Ryan Addams                     rowan at unix.mclv.net
 vern-n
 vertex
+Vertigo        Sergey Goltsov                  sergiosolnet at gmail.com
                                                vince at who.net
 vod            Roger Stone                     capsterx at hotmail.com
 void
Index: eggdrop1.8/doc/Changes1.8
diff -u eggdrop1.8/doc/Changes1.8:1.36.2.22 eggdrop1.8/doc/Changes1.8:1.36.2.23
--- eggdrop1.8/doc/Changes1.8:1.36.2.22	Tue Oct 25 10:49:19 2011
+++ eggdrop1.8/doc/Changes1.8	Thu Nov 10 16:10:09 2011
@@ -1,4 +1,4 @@
-$Id: Changes1.8,v 1.36.2.22 2011/10/25 16:49:19 thommey Exp $
+$Id: Changes1.8,v 1.36.2.23 2011/11/10 22:10:09 thommey Exp $
 
 Eggdrop Changes (since version 1.8.0)
 
@@ -6,6 +6,9 @@
 
 1.8.0 (CVS):
 
+  - Fixed the format specifier for the Tcl [traffic] command.
+    Found by: Vertigo / Patch by: thommey
+
   - Added missing read trace flag to the nick-len variable trace after
     being unset to make the trace be removed properly on unload.
     Found by: Dopsy / Patch by: pseudo
Index: eggdrop1.8/src/patch.h
diff -u eggdrop1.8/src/patch.h:1.25.2.17 eggdrop1.8/src/patch.h:1.25.2.18
--- eggdrop1.8/src/patch.h:1.25.2.17	Tue Oct 25 10:49:19 2011
+++ eggdrop1.8/src/patch.h	Thu Nov 10 16:10:10 2011
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.25.2.17 2011/10/25 16:49:19 thommey Exp $
+ * $Id: patch.h,v 1.25.2.18 2011/11/10 22:10:10 thommey Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1319561302");            /* current unixtime */
+patch("1320962988");            /* current unixtime */
 /*
  *
  *
  */
-patch("nicklentrace");
+patch("unsignedtraffic");
 /*
  *
  *
Index: eggdrop1.8/src/tcldcc.c
diff -u eggdrop1.8/src/tcldcc.c:1.4.2.1 eggdrop1.8/src/tcldcc.c:1.4.2.2
--- eggdrop1.8/src/tcldcc.c:1.4.2.1	Wed Nov 10 07:39:19 2010
+++ eggdrop1.8/src/tcldcc.c	Thu Nov 10 16:10:10 2011
@@ -2,7 +2,7 @@
  * tcldcc.c -- handles:
  *   Tcl stubs for the dcc commands
  *
- * $Id: tcldcc.c,v 1.4.2.1 2010/11/10 13:39:19 pseudo Exp $
+ * $Id: tcldcc.c,v 1.4.2.2 2011/11/10 22:10:10 thommey Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1118,31 +1118,31 @@
   unsigned long in_total_today, in_total;
 
   /* IRC traffic */
-  sprintf(buf, "irc %ld %ld %ld %ld", itraffic_irc_today, itraffic_irc +
+  sprintf(buf, "irc %lu %lu %lu %lu", itraffic_irc_today, itraffic_irc +
           itraffic_irc_today, otraffic_irc_today,
           otraffic_irc + otraffic_irc_today);
   Tcl_AppendElement(irp, buf);
 
   /* Botnet traffic */
-  sprintf(buf, "botnet %ld %ld %ld %ld", itraffic_bn_today, itraffic_bn +
+  sprintf(buf, "botnet %lu %lu %lu %lu", itraffic_bn_today, itraffic_bn +
           itraffic_bn_today, otraffic_bn_today,
           otraffic_bn + otraffic_bn_today);
   Tcl_AppendElement(irp, buf);
 
   /* Partyline */
-  sprintf(buf, "partyline %ld %ld %ld %ld", itraffic_dcc_today, itraffic_dcc +
+  sprintf(buf, "partyline %lu %lu %lu %lu", itraffic_dcc_today, itraffic_dcc +
           itraffic_dcc_today, otraffic_dcc_today,
           otraffic_dcc + otraffic_dcc_today);
   Tcl_AppendElement(irp, buf);
 
   /* Transfer */
-  sprintf(buf, "transfer %ld %ld %ld %ld", itraffic_trans_today,
+  sprintf(buf, "transfer %lu %lu %lu %lu", itraffic_trans_today,
           itraffic_trans + itraffic_trans_today, otraffic_trans_today,
           otraffic_trans + otraffic_trans_today);
   Tcl_AppendElement(irp, buf);
 
   /* Misc traffic */
-  sprintf(buf, "misc %ld %ld %ld %ld", itraffic_unknown_today,
+  sprintf(buf, "misc %lu %lu %lu %lu", itraffic_unknown_today,
           itraffic_unknown + itraffic_unknown_today, otraffic_unknown_today,
           otraffic_unknown + otraffic_unknown_today);
   Tcl_AppendElement(irp, buf);
@@ -1158,7 +1158,7 @@
                     otraffic_unknown_today;
   out_total = out_total_today + otraffic_irc + otraffic_bn + otraffic_dcc +
               otraffic_trans + otraffic_unknown;
-  sprintf(buf, "total %ld %ld %ld %ld", in_total_today, in_total,
+  sprintf(buf, "total %lu %lu %lu %lu", in_total_today, in_total,
           out_total_today, out_total);
   Tcl_AppendElement(irp, buf);
   return TCL_OK;
----------------------- End of diff -----------------------


More information about the Changes mailing list