log_write_rec(): added level parameter. writing /LASTLOG to log files

doesn't anymore print the current timestamp at the start of line since
/LASTLOG messages have their original timestamp already.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1235 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-17 12:08:31 +00:00 committed by cras
commit e5f1216797
3 changed files with 18 additions and 15 deletions

View file

@ -397,7 +397,7 @@ static void log_single_line(WINDOW_REC *window, void *server,
ltoa(windownum, window->refnum);
log = logs_find_item(LOG_ITEM_WINDOW_REFNUM,
windownum, NULL, NULL);
if (log != NULL) log_write_rec(log, text);
if (log != NULL) log_write_rec(log, text, level);
if (target == NULL)
log_file_write(server, NULL, level, text, FALSE);