diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index af7c1099..43785f8a 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -285,7 +285,9 @@ sub prune_message_history { sub unbanme { my ($self, $from, $nick, $user, $host, $arguments) = @_; - my $channel = $arguments; + my $channel = lc $arguments; + $host = lc $host; + $user = lc $user; if(not defined $channel) { return "/msg $nick Usage: unbanme "; @@ -293,7 +295,7 @@ sub unbanme { my $banmask = address_to_mask($host); - my $mask = "*!$user\@$banmask\$##stop_join_flood"; + my $mask = lc "*!$user\@$banmask\$##stop_join_flood"; if(not exists $self->{pbot}->{chanops}->{unban_timeout}->hash->{$mask}) { return "/msg $nick There is no temporary ban set for $mask in channel $channel."; diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 131f5351..e4ad979c 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 195, + BUILD_REVISION => 197, BUILD_DATE => "2010-06-21", };