From ded57916e9c9456187bed33ab61d16c5db688bc7 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 8 Oct 2012 23:00:39 +0100 Subject: [PATCH] Removed time date from dated logs Use 'me' instead of login --- src/chat_log.c | 6 +++--- src/windows.c | 2 +- 2 files changed, 4 insertions(+), 4 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); diff --git a/src/windows.c b/src/windows.c index 787d04f6..b36bea28 100644 --- a/src/windows.c +++ b/src/windows.c @@ -853,7 +853,7 @@ static void _win_show_time(WINDOW *win) { GDateTime *time = g_date_time_new_now_local(); - gchar *date_fmt = g_date_time_format(time, "%H:%M"); + gchar *date_fmt = g_date_time_format(time, "%H:%M:%S"); wprintw(win, "%s - ", date_fmt); g_date_time_unref(time); g_free(date_fmt);