1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

log_day_change was never printed in logs.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@629 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-08-25 21:10:05 +00:00 committed by cras
parent 9a2b8e95ed
commit 776895eeac

View File

@ -170,17 +170,19 @@ void log_write_rec(LOG_REC *log, const char *str)
day = tm->tm_mday;
tm = localtime(&log->last);
day -= tm->tm_mday; /* tm breaks in log_rotate_check() .. */
if (tm->tm_hour != hour) {
/* hour changed, check if we need to rotate log file */
log_rotate_check(log);
}
if (tm->tm_mday != day) {
if (day != 0) {
/* day changed */
log_write_timestamp(log->handle,
settings_get_str("log_day_changed"),
"\n", now);
}
log->last = now;
log_write_timestamp(log->handle, log_timestamp, str, now);