about summary refs log tree commit diff stats
path: root/src/chat_log.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-08 23:00:39 +0100
committerJames Booth <boothj5@gmail.com>2012-10-08 23:00:39 +0100
commitded57916e9c9456187bed33ab61d16c5db688bc7 (patch)
tree292b5f5b7b6adb8be766797ea3ad51836cce00f0 /src/chat_log.c
parent48936c0a95627e6813f2cb9266ed9240ee4f5ea6 (diff)
downloadprofani-tty-ded57916e9c9456187bed33ab61d16c5db688bc7.tar.gz
Removed time date from dated logs
Use 'me' instead of login
Diffstat (limited to 'src/chat_log.c')
-rw-r--r--src/chat_log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chat_log.c b/src/chat_log.c
index 60062f38..78689048 100644
--- a/src/chat_log.c
+++ b/src/chat_log.c
@@ -78,12 +78,12 @@ chat_log_chat(const gchar * const login, gchar *other,
     }
 
     GDateTime *dt = g_date_time_new_now(tz);
-    gchar *date_fmt = g_date_time_format(dt, "%d/%m/%Y %H:%M:%S");
+    gchar *date_fmt = g_date_time_format(dt, "%H:%M:%S");
 
     if (direction == IN) {
-        fprintf(logp, "%s: %s: %s\n", date_fmt, other, msg);
+        fprintf(logp, "%s - %s: %s\n", date_fmt, other, msg);
     } else {
-        fprintf(logp, "%s: %s: %s\n", date_fmt, login, msg);
+        fprintf(logp, "%s - me: %s\n", date_fmt, msg);
     }
     fflush(logp);
 
n8' href='#n8'>8
9
10
11
12
13
14
15
16
17
18