From: martin f. krafft Date: Tue, 26 May 2009 09:41:55 +0000 (+0200) Subject: skip filtered windows earlier X-Git-Url: https://git.madduck.net/code/irssi/scripts-bc-bd.git/commitdiff_plain/82252cc29ce711c0368f2bfc0646b4de04597448?hp=c814dbc804d0a1969b945364deaefdfe10bf4753 skip filtered windows earlier Signed-off-by: martin f. krafft --- diff --git a/chanact.pl b/chanact.pl index d4e36b1..1444248 100644 --- a/chanact.pl +++ b/chanact.pl @@ -234,6 +234,9 @@ sub remake() { my $name = $win->get_active_name; + # skip windows that have only activity below the filter setting + next if (Irssi::settings_get_int('chanact_filter') > $win->{data_level}); + # (status) is an awfull long name, so make it short to 'S' # some people don't like it, so make it configurable if (Irssi::settings_get_bool('chanact_chop_status') @@ -262,8 +265,6 @@ sub remake() { } } - next if (Irssi::settings_get_int('chanact_filter') > $win->{data_level}); - # in case we have a specific hilightcolor use it if ($win->{hilight_color}) { $hilight = "{sb_act_hilight_color $win->{hilight_color} ";