3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

anti-flood: Set hostmask to last known nickserv account when checking accounts until nick without account is found

This commit is contained in:
Pragmatic Software 2014-03-10 08:15:33 +00:00
parent 8afb73acc2
commit fe020443bb
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;