From f9d4b9d8c8d82c6931f34cac2aa982420b7e7a32 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 23 Jul 2000 14:18:32 +0000 Subject: [PATCH] Awaylog didn't work right if you did /AWAY multiple times. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@526 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-log.c | 3 +++ 1 file changed, 3 insertions(+) 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;