From 3061f5d848f6f487e8c73a5d5846b7a860ca5466 Mon Sep 17 00:00:00 2001 From: vague666 Date: Sat, 27 Oct 2018 20:00:15 +0200 Subject: [PATCH] make sure only channels are checked --- src/fe-common/core/fe-log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c index 7823d727..d71c62a9 100644 --- a/src/fe-common/core/fe-log.c +++ b/src/fe-common/core/fe-log.c @@ -24,6 +24,7 @@ #include "commands.h" #include "chat-protocols.h" #include "servers.h" +#include "channels.h" #include "levels.h" #include "misc.h" #include "log.h" @@ -489,7 +490,8 @@ static void autolog_open_check(TEXT_DEST_REC *dest) deftarget = server ? server->nick : "unknown"; /* log only channels that have been saved to the config */ - if (settings_get_bool("autolog_only_saved_channels") && channel_setup_find(target, server_tag) == NULL) + if (settings_get_bool("autolog_only_saved_channels") && IS_CHANNEL(window_item_find(server, target)) + && channel_setup_find(target, server_tag) == NULL) return; if (autolog_ignore_targets != NULL &&