mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
make sure only channels are checked
This commit is contained in:
parent
2093530e75
commit
3061f5d848
@ -24,6 +24,7 @@
|
|||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
#include "chat-protocols.h"
|
#include "chat-protocols.h"
|
||||||
#include "servers.h"
|
#include "servers.h"
|
||||||
|
#include "channels.h"
|
||||||
#include "levels.h"
|
#include "levels.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
@ -489,7 +490,8 @@ static void autolog_open_check(TEXT_DEST_REC *dest)
|
|||||||
deftarget = server ? server->nick : "unknown";
|
deftarget = server ? server->nick : "unknown";
|
||||||
|
|
||||||
/* log only channels that have been saved to the config */
|
/* 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;
|
return;
|
||||||
|
|
||||||
if (autolog_ignore_targets != NULL &&
|
if (autolog_ignore_targets != NULL &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user