mirror of
https://github.com/profanity-im/profanity.git
synced 2024-06-23 21:45:30 +00:00
log: don't log dt
Use another name.
This commit is contained in:
parent
5a42883c27
commit
25dbebab17
|
@ -595,9 +595,9 @@ _groupchat_log_chat(const gchar *const login, const gchar *const room, const gch
|
||||||
g_hash_table_replace(logs, strdup(room), dated_log);
|
g_hash_table_replace(logs, strdup(room), dated_log);
|
||||||
}
|
}
|
||||||
|
|
||||||
GDateTime *dt = g_date_time_new_now_local();
|
GDateTime *dt_tmp = g_date_time_new_now_local();
|
||||||
|
|
||||||
gchar *date_fmt = g_date_time_format(dt, "%H:%M:%S");
|
gchar *date_fmt = g_date_time_format(dt_tmp, "%H:%M:%S");
|
||||||
|
|
||||||
FILE *grpchatlogp = fopen(dated_log->filename, "a");
|
FILE *grpchatlogp = fopen(dated_log->filename, "a");
|
||||||
g_chmod(dated_log->filename, S_IRUSR | S_IWUSR);
|
g_chmod(dated_log->filename, S_IRUSR | S_IWUSR);
|
||||||
|
@ -616,7 +616,7 @@ _groupchat_log_chat(const gchar *const login, const gchar *const room, const gch
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free(date_fmt);
|
g_free(date_fmt);
|
||||||
g_date_time_unref(dt);
|
g_date_time_unref(dt_tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user