use vars qw($VERSION %IRSSI);
-$VERSION = "2.1.3beta";
-my ($REV) = '$Rev: 551 $' =~ /(\d+)/;
+$VERSION = "2.2.0";
+my ($REV) = '$Rev: 559 $' =~ /(\d+)/;
%IRSSI = (
authors => 'Dan Boger',
contact => 'zigdon@gmail.com',
. 'Can optionally set your bitlbee /away message to same',
license => 'GNU GPL v2',
url => 'http://twirssi.com',
- changed => '$Date: 2009-03-15 18:00:12 -0700 (Sun, 15 Mar 2009) $',
+ changed => '$Date: 2009-03-16 15:34:12 -0700 (Mon, 16 Mar 2009) $',
);
my $window;
my $hilight_color =
$irssi_to_mirc_colors{ Irssi::settings_get_str("hilight_color") };
- if ( ( $_ =~ /\@$meta{account}\W/i )
- && Irssi::settings_get_bool("twirssi_hilights") )
+ my $nick =
+ '@' . substr( $meta{account}, 0, index( $meta{account}, "@" ) );
+ if ( $_ =~ /\Q$nick\E(?:\W|$)/i
+ and Irssi::settings_get_bool("twirssi_hilights") )
{
$meta{nick} = "\cC$hilight_color$meta{nick}\cO";
$hilight = MSGLEVEL_HILIGHT;