From 3ae155f100df2b979f40e9b0c19c9dbf9530ac9f Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sat, 7 Apr 2007 15:00:25 +0000 Subject: [PATCH] Only consider autolog logs when looking for an open log in autolog_open. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4441 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c index 5b2a7780..1f9dce2b 100644 --- a/src/fe-common/core/fe-log.c +++ b/src/fe-common/core/fe-log.c @@ -252,6 +252,7 @@ static LOG_REC *logs_find_item(int type, const char *item, for (tmp = logs; tmp != NULL; tmp = tmp->next) { LOG_REC *log = tmp->data; + if (type == LOG_ITEM_TARGET && log->temp == 0) continue; logitem = log_item_find(log, type, item, servertag); if (logitem != NULL) { if (ret_item != NULL) *ret_item = logitem;