From: Brian S. Stephan Date: Tue, 27 Jan 2009 02:12:31 +0000 (-0600) Subject: hilight the nick of the person who tweeted @yournick, instead of hilighting @yournick... X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/714d0806bba11bade31e514170d247c4aa8cce81?ds=inline hilight the nick of the person who tweeted @yournick, instead of hilighting @yournick, as the default irssi behavior would --- diff --git a/twirssi.pl b/twirssi.pl index 8f6be25..4decda6 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -753,7 +753,8 @@ sub monitor_child { } my $hilight_color = $irssi_to_mirc_colors{Irssi::settings_get_str("hilight_color")}; - if ( $_ =~ s/\@($meta{account})\W/\cC$hilight_color\@$1\cO/g ) { + if ( $_ =~ /\@($meta{account})\W/ ) { + $meta{nick} = "\cC$hilight_color$meta{nick}\cO"; $hilight = MSGLEVEL_HILIGHT; }