From b6f842bafcd3ea653c09692bfc87ddde40dbbcfe Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 29 Mar 2015 20:26:08 -0700 Subject: [PATCH] Rename some missed variables from previous name-change --- PBot/BlackList.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/PBot/BlackList.pm b/PBot/BlackList.pm index 8ccb711c..57527289 100644 --- a/PBot/BlackList.pm +++ b/PBot/BlackList.pm @@ -132,16 +132,16 @@ sub check_blacklist { return 0 if not defined $channel; - foreach my $shit_channel (keys %{ $self->{blacklist} }) { - foreach my $shit_hostmask (keys %{ $self->{blacklist}->{$shit_channel} }) { - my $shit_channel_escaped = quotemeta $shit_channel; - my $shit_hostmask_escaped = quotemeta $shit_hostmask; + foreach my $black_channel (keys %{ $self->{blacklist} }) { + foreach my $black_hostmask (keys %{ $self->{blacklist}->{$black_channel} }) { + my $black_channel_escaped = quotemeta $black_channel; + my $black_hostmask_escaped = quotemeta $black_hostmask; - $shit_channel_escaped =~ s/\\(\.|\*)/$1/g; - $shit_hostmask_escaped =~ s/\\(\.|\*)/$1/g; + $black_channel_escaped =~ s/\\(\.|\*)/$1/g; + $black_hostmask_escaped =~ s/\\(\.|\*)/$1/g; - if(($channel =~ /$shit_channel_escaped/i) && ($hostmask =~ /$shit_hostmask_escaped/i)) { - $self->{pbot}->{logger}->log("$hostmask blacklisted in channel $channel (matches [$shit_hostmask] host and [$shit_channel] channel)\n"); + if(($channel =~ /$black_channel_escaped/i) && ($hostmask =~ /$black_hostmask_escaped/i)) { + $self->{pbot}->{logger}->log("$hostmask blacklisted in channel $channel (matches [$black_hostmask] host and [$black_channel] channel)\n"); return 1; } }