command 'GUI COLOR 3';
}
+sub guiclear {
+ command 'GUI COLOR 0';
+}
+
hook_print 'Private Message to Dialog', sub { guihl; return EAT_NONE };
my %hl = (
}
} => 'Channel Action Hilight';
+my %skip = (
+ '#p5p' => [
+ '(?i:jesse.vincent)',
+ ],
+);
+
+for (keys %skip) {
+ my $rx = '(?:' . join('|', @{$skip{$_}}) . ')';
+ $skip{$_} = qr/$rx/;
+}
+
+filter 'Channel Action Hilight' => sub {
+ my $chan = lc get_info 'channel';
+ if ($skip{$chan} and $_[1] =~ /$skip{$chan}/) {
+ guiclear;
+ 1;
+ } else {
+ 0;
+ }
+} => 'Channel Action';
+
$ph = new Xchat::XPI name => 'Smart highlighting',
tag => 'HL',
desc => 'Highlight on private messages',