projects
/
twirssi-net-twitter-lite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
716310d
)
added !foo to the "hash tag" hilight regexp, since it seemed to flow with how identic...
author
Mark Walling
<mark@markwalling.org>
Wed, 10 Jun 2009 18:09:45 +0000
(14:09 -0400)
committer
Dan Boger
<zigdon@irc.peeron.com>
Thu, 11 Jun 2009 23:48:08 +0000
(16:48 -0700)
twirssi.pl
patch
|
blob
|
history
diff --git
a/twirssi.pl
b/twirssi.pl
index 42718dd7340ec25c8ca47a94ae0d6894cd51eb7e..af1d3d3232b11d05e4776035de0431a204e31333 100644
(file)
--- 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;