summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/core/irc-log.c b/src/irc/core/irc-log.c
index b454192a..3006f58d 100644
--- a/src/irc/core/irc-log.c
+++ b/src/irc/core/irc-log.c
@@ -51,6 +51,9 @@ static void event_away(const char *data, IRC_SERVER_REC *server)
if (level == 0) return;
log = log_find(fname);
+ if (log != NULL && log->handle != -1)
+ return; /* already open */
+
if (log == NULL) {
log = log_create_rec(fname, level, NULL);
log->temp = TRUE;