From fe020443bb8fd81d5f6b165023d5b719585e874d Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 10 Mar 2014 08:15:33 +0000 Subject: [PATCH] anti-flood: Set hostmask to last known nickserv account when checking accounts until nick without account is found --- PBot/AntiFlood.pm | 1 + PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index e3d6cc23..17238cf3 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -695,6 +695,7 @@ sub check_nickserv_accounts { if(exists $self->{message_history}->{$mask}->{nickserv_accounts} and exists $self->{message_history}->{$mask}->{nickserv_accounts}->{$account}) { # pre-existing mask found using this account previously #$self->{pbot}->logger->log("anti-flood: [check-account] $nick [nickserv: $account] seen previously as $mask.\n"); + $hostmask = $mask; } else { # no nickserv account set yet diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index b8e13808..a7c5f3b8 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,8 +13,8 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 519, - BUILD_DATE => "2014-03-09", + BUILD_REVISION => 520, + BUILD_DATE => "2014-03-10", }; 1;