diff mcabber/src/histolog.c @ 118:1e8f646e2c5b

[/trunk] Changeset 131 by mikael * Clean up * Fix /status offline * Change (slightly) history log line format
author mikael
date Mon, 25 Apr 2005 19:02:07 +0000
parents 8ac67e951eab
children 8a54d46e889a
line wrap: on
line diff
--- a/mcabber/src/histolog.c	Mon Apr 25 15:26:17 2005 +0000
+++ b/mcabber/src/histolog.c	Mon Apr 25 19:02:07 2005 +0000
@@ -77,8 +77,8 @@
   for (p=data ; *p ; p++)
     if (*p == '\n') len++;
 
-  /* Line format: "T I DDDDDDDDDD LLL [data]"
-   * T=Type, I=Info, D=date, LLL=0-padded-len
+  /* Line format: "TI DDDDDDDDDD LLL [data]"
+   * T=Type, I=Info, DDDDDDDDDD=date, LLL=0-padded-len
    *
    * Types:
    * - M message    Info: S (send) R (receive)
@@ -89,7 +89,7 @@
   fp = fopen(filename, "a");
   if (!fp)
     return;
-  fprintf(fp, "%c %c %10u %03d %s\n", type, info, (unsigned int)ts, len, data);
+  fprintf(fp, "%c%c %10u %03d %s\n", type, info, (unsigned int)ts, len, data);
   fclose(fp);
 }