1 package Xchat::VPIT::Highlight;
8 use lib get_info 'xchatdir';
10 use Xchat::XPI::Events qw/filter/;
12 our $VERSION = '0.02';
18 command 'GUI COLOR 3';
21 hook_print 'Private Message to Dialog', sub { guihl; return EAT_NONE };
24 '#cpantesters' => [ qw/
25 Acme-CPANAuthors-You-re_using
31 Perl-Critic-Policy-Dynamic-NoIndirect
48 my $rx = '(?:' . join('|', @{$hl{$_}}) . ')';
52 filter 'Channel Action' => sub {
53 my $chan = lc get_info 'channel';
54 if ($hl{$chan} and $_[1] =~ /$hl{$chan}/) {
60 } => 'Channel Action Hilight';
62 $ph = new Xchat::XPI name => 'Smart highlighting',
64 desc => 'Highlight on private messages',
65 author => 'Vincent Pit (VPIT)',
66 email => 'perl@profvince.com',
67 url => 'http://www.profvince.com';