hilight the nick of the person who tweeted @yournick, instead of hilighting @yournick...
authorBrian S. Stephan <bss@emptymatter.org>
Tue, 27 Jan 2009 02:12:31 +0000 (20:12 -0600)
committerBrian S. Stephan <bss@emptymatter.org>
Tue, 27 Jan 2009 02:12:31 +0000 (20:12 -0600)
twirssi.pl

index 8f6be25..4decda6 100644 (file)
@@ -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;
             }