From 8ed333ba9604195280a36122671a06f52f01a34f Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 25 Jun 2015 22:55:06 -0700 Subject: [PATCH] Fix typo "has_unban_timeout" -> "has_ban_timeout" --- PBot/AntiFlood.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index f8fd89dd..89480050 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -313,7 +313,7 @@ sub check_flood { $channel_data->{enter_abuse} = $enter_abuse_threshold / 2 - 1; if(++$channel_data->{enter_abuses} >= $enter_abuse_max_offenses) { if($self->{pbot}->{registry}->get_value('antiflood', 'enforce')) { - if ($self->{pbot}->{chanops}->has_unban_timeout($channel, "*!$user\@" . address_to_mask($host))) { + if ($self->{pbot}->{chanops}->has_ban_timeout($channel, "*!$user\@" . address_to_mask($host))) { $self->{pbot}->{logger}->log("$nick $channel enter abuse offense disregarded due to existing ban\n"); next; } @@ -405,7 +405,7 @@ sub check_flood { } elsif($mode == $self->{pbot}->{messagehistory}->{MSG_CHAT}) { if($channel =~ /^#/) { #channel flood (opposed to private message or otherwise) # don't increment offenses again if already banned - if ($self->{pbot}->{chanops}->has_unban_timeout($channel, "*!$user\@" . address_to_mask($host))) { + if ($self->{pbot}->{chanops}->has_ban_timeout($channel, "*!$user\@" . address_to_mask($host))) { $self->{pbot}->{logger}->log("$nick $channel flood offense disregarded due to existing ban\n"); next; } @@ -680,7 +680,7 @@ sub check_bans { $self->{pbot}->{logger}->log("anti-flood: [check-bans] $mask evaded $baninfo->{banmask} banned in $baninfo->{channel} by $baninfo->{owner}, banning $banmask\n"); my ($bannick) = $mask =~ m/^([^!]+)/; if($self->{pbot}->{registry}->get_value('antiflood', 'enforce')) { - if ($self->{pbot}->{chanops}->has_unban_timeout($baninfo->{channel}, $banmask)) { + if ($self->{pbot}->{chanops}->has_ban_timeout($baninfo->{channel}, $banmask)) { $self->{pbot}->{logger}->log("anti-flood: [check-bans] $banmask already banned in $channel, disregarding\n"); return; }