use strict;
use warnings;
-our $VERSION = '0.4.7'; # 1cc0249a11b3fc9
+our $VERSION = '0.4.8'; # baf75f08d3d32c9
our %IRSSI = (
authors => 'Nei',
contact => 'Nei @ anti@conference.jabber.teamidiot.de',
# * only this many lines of messages are remembered/rewritten (per
# window)
#
+# /set dim_nicks_ignore_hilights <ON|OFF>
+# * ignore lines with hilight when dimming
+#
# /set dim_nicks_forms_skip <num>
# /set dim_nicks_forms_search_max <num>
# * these two settings limit the range where to search for the
my $history_lines = 100;
my $skip_forms = 1;
my $search_forms_max = 5;
+my $ignore_hilights = 1;
my $color_letter = 'K';
# nick object cache, chan object cache, line id cache, line id -> window map, -> channel, -> nick, -> nickname, channel -> line ids, channel->nickname->departure time, channel->nickname->{parts of line}
$history_lines = Irssi::settings_get_int( set 'history_lines' );
$skip_forms = Irssi::settings_get_int( set 'forms_skip' );
$search_forms_max = Irssi::settings_get_int( set 'forms_search_max' );
+ $ignore_hilights = Irssi::settings_get_bool( set 'ignore_hilights' );
my $new_color = Irssi::settings_get_str( set 'color' );
if ($new_color ne $color_letter) {
$color_letter = $new_color;
return unless $nickref;
return unless $dest && defined $dest->{target};
return unless $dest->{level} & MSGLEVEL_PUBLIC;
+ return if $ignore_hilights && $dest->{level} & MSGLEVEL_HILIGHT;
my ($win) = @_;
my $view = $win->view;
}
Irssi::settings_add_int( setc, set 'history_lines', $history_lines);
+Irssi::settings_add_bool( setc, set 'ignore_hilights', $ignore_hilights);
Irssi::signal_add_last({
'setup changed' => 'setup_changed',
});
# Changelog
# =========
+# 0.4.8
+# - optionally ignore hilighted lines
# 0.4.7
# - fix useless re-reading of settings colour
# 0.4.6