From 28f3e476dab7197a69c2afccfb87752f6e6b242a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 13 Oct 2000 21:53:25 +0000 Subject: Complain only once with autologging if opening some log file failed (locked by another irssi) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@734 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/log.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/log.c') diff --git a/src/core/log.c b/src/core/log.c index 92f90043..b6c6fba4 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -88,6 +88,7 @@ int log_start_logging(LOG_REC *log) log_file_create_mode); if (log->handle == -1) { signal_emit("log create failed", 1, log); + log->failed = TRUE; return FALSE; } #ifdef HAVE_FCNTL @@ -97,6 +98,7 @@ int log_start_logging(LOG_REC *log) close(log->handle); log->handle = -1; signal_emit("log locked", 1, log); + log->failed = TRUE; return FALSE; } #endif @@ -108,6 +110,7 @@ int log_start_logging(LOG_REC *log) "\n", log->last); signal_emit("log started", 1, log); + log->failed = FALSE; return TRUE; } -- cgit v1.2.3