3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Rename some missed variables from previous name-change

This commit is contained in:
Pragmatic Software 2015-03-29 20:26:08 -07:00
parent b36a4fb2c9
commit b6f842bafc

View File

@ -132,16 +132,16 @@ sub check_blacklist {
return 0 if not defined $channel; return 0 if not defined $channel;
foreach my $shit_channel (keys %{ $self->{blacklist} }) { foreach my $black_channel (keys %{ $self->{blacklist} }) {
foreach my $shit_hostmask (keys %{ $self->{blacklist}->{$shit_channel} }) { foreach my $black_hostmask (keys %{ $self->{blacklist}->{$black_channel} }) {
my $shit_channel_escaped = quotemeta $shit_channel; my $black_channel_escaped = quotemeta $black_channel;
my $shit_hostmask_escaped = quotemeta $shit_hostmask; my $black_hostmask_escaped = quotemeta $black_hostmask;
$shit_channel_escaped =~ s/\\(\.|\*)/$1/g; $black_channel_escaped =~ s/\\(\.|\*)/$1/g;
$shit_hostmask_escaped =~ s/\\(\.|\*)/$1/g; $black_hostmask_escaped =~ s/\\(\.|\*)/$1/g;
if(($channel =~ /$shit_channel_escaped/i) && ($hostmask =~ /$shit_hostmask_escaped/i)) { if(($channel =~ /$black_channel_escaped/i) && ($hostmask =~ /$black_hostmask_escaped/i)) {
$self->{pbot}->{logger}->log("$hostmask blacklisted in channel $channel (matches [$shit_hostmask] host and [$shit_channel] channel)\n"); $self->{pbot}->{logger}->log("$hostmask blacklisted in channel $channel (matches [$black_hostmask] host and [$black_channel] channel)\n");
return 1; return 1;
} }
} }