1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Fixed new years eve bug with chat history

This commit is contained in:
James Booth 2012-12-31 15:29:44 +00:00
parent 543f0dea29
commit 3b37e53a5c

View File

@ -126,7 +126,7 @@ chat_log_get_previous(const gchar * const login, const gchar * const recipient,
g_date_time_get_second(session_started));
// get data from all logs from the day the session was started to today
while (g_date_time_get_day_of_year(log_date) <= g_date_time_get_day_of_year(now)) {
while (g_date_time_compare(log_date, now) != 1) {
char *filename = _get_log_filename(recipient, login, log_date, FALSE);
FILE *logp = fopen(filename, "r");