hook_print 'Private Message to Dialog', sub { guihl; return EAT_NONE };
-my %words = (
+my %hl = (
'#cpantesters' => [ qw/
Acme-CPANAuthors-You-re_using
B-RecDeparse
/ ],
);
-for (keys %words) {
- my $rx = '(?:' . (join '|', @{$words{$_}}) . ')';
- $words{$_} = qr/$rx/;
+for (keys %hl) {
+ my $rx = '(?:' . join('|', @{$hl{$_}}) . ')';
+ $hl{$_} = qr/$rx/;
}
filter 'Channel Action' => sub {
my $chan = lc get_info 'channel';
- if ($words{$chan} and $_[1] =~ /$words{$chan}/) {
+ if ($hl{$chan} and $_[1] =~ /$hl{$chan}/) {
guihl;
1;
} else {