From 82252cc29ce711c0368f2bfc0646b4de04597448 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 26 May 2009 11:41:55 +0200 Subject: [PATCH 1/1] skip filtered windows earlier Signed-off-by: martin f. krafft --- chanact.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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} "; -- 2.39.2