]> git.sommitrealweird.co.uk Git - twirssi-net-twitter-lite.git/commitdiff
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 8f6be2507a965599af5a6789e72e267118ba0007..4decda6d27c183e41f40536bc51c49b5de1e6d7b 100644 (file)
@@ -753,7 +753,8 @@ sub monitor_child {
             }
 
             my $hilight_color = $irssi_to_mirc_colors{Irssi::settings_get_str("hilight_color")};
             }
 
             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;
             }
 
                 $hilight = MSGLEVEL_HILIGHT;
             }