From: Brian S. Stephan Date: Sat, 7 Feb 2009 06:22:16 +0000 (+0800) Subject: add twirssi_hilights boolean, disable to squash twirssi adding hilights for @yournick X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/abb94ae1f393fed98efadcafd77ca04eeb034bd8 add twirssi_hilights boolean, disable to squash twirssi adding hilights for @yournick Signed-off-by: Dan Boger --- diff --git a/twirssi.pl b/twirssi.pl index 7ba9fe9..aa360ce 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -874,7 +874,7 @@ sub monitor_child { my $hilight_color = $irssi_to_mirc_colors{ Irssi::settings_get_str("hilight_color") }; - if ( $_ =~ /\@$meta{account}\W/i ) { + if ( ($_ =~ /\@$meta{account}\W/i) && Irssi::settings_get_bool("twirssi_hilights") ) { $meta{nick} = "\cC$hilight_color$meta{nick}\cO"; $hilight = MSGLEVEL_HILIGHT; } @@ -1130,6 +1130,7 @@ Irssi::settings_add_bool( "twirssi", "twirssi_first_run", 1 ); Irssi::settings_add_bool( "twirssi", "twirssi_track_replies", 1 ); Irssi::settings_add_bool( "twirssi", "twirssi_replies_autonick", 1 ); Irssi::settings_add_bool( "twirssi", "twirssi_use_reply_aliases", 0 ); +Irssi::settings_add_bool( "twirssi", "twirssi_hilights", 1 ); Irssi::settings_add_bool( "twirssi", "tweet_window_input", 0 ); $last_poll = time - &get_poll_time;