]> git.madduck.net Git - code/irssi/scripts-bc-bd.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

skip filtered windows earlier
authormartin f. krafft <madduck@madduck.net>
Tue, 26 May 2009 09:41:55 +0000 (11:41 +0200)
committermartin f. krafft <madduck@madduck.net>
Tue, 26 May 2009 18:07:32 +0000 (20:07 +0200)
Signed-off-by: martin f. krafft <madduck@madduck.net>
chanact.pl

index d4e36b1fd53d37a6d051b6877b59503e539c2c22..1444248c514117e2d966bef40bc607bbc192f345 100644 (file)
@@ -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} ";