summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-23 14:18:32 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-23 14:18:32 +0000
commitf9d4b9d8c8d82c6931f34cac2aa982420b7e7a32 (patch)
tree20bad1304e86091a004e209ee0321f2215a6c3df /src/irc
parentb2a616b68fddebb3146adebae1218fe9f9d851c3 (diff)
downloadirssi-f9d4b9d8c8d82c6931f34cac2aa982420b7e7a32.zip
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
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;