1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Removed time date from dated logs

Use 'me' instead of login
This commit is contained in:
James Booth 2012-10-08 23:00:39 +01:00
parent 48936c0a95
commit ded57916e9
2 changed files with 4 additions and 4 deletions

View File

@ -78,12 +78,12 @@ chat_log_chat(const gchar * const login, gchar *other,
} }
GDateTime *dt = g_date_time_new_now(tz); 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) { if (direction == IN) {
fprintf(logp, "%s: %s: %s\n", date_fmt, other, msg); fprintf(logp, "%s - %s: %s\n", date_fmt, other, msg);
} else { } else {
fprintf(logp, "%s: %s: %s\n", date_fmt, login, msg); fprintf(logp, "%s - me: %s\n", date_fmt, msg);
} }
fflush(logp); fflush(logp);

View File

@ -853,7 +853,7 @@ static void
_win_show_time(WINDOW *win) _win_show_time(WINDOW *win)
{ {
GDateTime *time = g_date_time_new_now_local(); 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); wprintw(win, "%s - ", date_fmt);
g_date_time_unref(time); g_date_time_unref(time);
g_free(date_fmt); g_free(date_fmt);