X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/blobdiff_plain/716310d4cade6c8067b01ecde298a97ba5fb1513..cd891f508d19f802facaddd9d5dce958a60695f3:/twirssi.pl diff --git a/twirssi.pl b/twirssi.pl index 42718dd..af1d3d3 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -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;