]> git.sommitrealweird.co.uk Git - twirssi-net-twitter-lite.git/blobdiff - twirssi.pl
added !foo to the "hash tag" hilight regexp, since it seemed to flow with how identic...
[twirssi-net-twitter-lite.git] / twirssi.pl
index 42718dd7340ec25c8ca47a94ae0d6894cd51eb7e..af1d3d3232b11d05e4776035de0431a204e31333 100644 (file)
@@ -1382,7 +1382,7 @@ sub hilight {
     if ( Irssi::settings_get_str("twirssi_topic_color") ) {
         my $c = Irssi::settings_get_str("twirssi_topic_color");
         $c = $irssi_to_mirc_colors{$c};
-        $text =~ s/(^|\W)\#([-\w]+)/$1\cC$c\#$2\cO/g if $c;
+        $text =~ s/(^|\W)(\#|\!)([-\w]+)/$1\cC$c$2$3\cO/g if $c;
     }
     $text =~ s/[\n\r]/ /g;