mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +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:
parent
8afb73acc2
commit
fe020443bb
@ -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}) {
|
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
|
# pre-existing mask found using this account previously
|
||||||
#$self->{pbot}->logger->log("anti-flood: [check-account] $nick [nickserv: $account] seen previously as $mask.\n");
|
#$self->{pbot}->logger->log("anti-flood: [check-account] $nick [nickserv: $account] seen previously as $mask.\n");
|
||||||
|
$hostmask = $mask;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# no nickserv account set yet
|
# no nickserv account set yet
|
||||||
|
@ -13,8 +13,8 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 519,
|
BUILD_REVISION => 520,
|
||||||
BUILD_DATE => "2014-03-09",
|
BUILD_DATE => "2014-03-10",
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user