mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Link nick-changes to original nick's account instead of new nick's
This commit is contained in:
parent
351385cb67
commit
cdb84a8602
@ -319,7 +319,7 @@ sub on_nickchange {
|
|||||||
$self->{pbot}->{messagehistory}->add_message($message_account, "$nick!$user\@$host", $channel, "NICKCHANGE $newnick", $self->{pbot}->{messagehistory}->{MSG_NICKCHANGE});
|
$self->{pbot}->{messagehistory}->add_message($message_account, "$nick!$user\@$host", $channel, "NICKCHANGE $newnick", $self->{pbot}->{messagehistory}->{MSG_NICKCHANGE});
|
||||||
}
|
}
|
||||||
|
|
||||||
my $newnick_account = $self->{pbot}->{messagehistory}->{database}->get_message_account($newnick, $user, $host);
|
my $newnick_account = $self->{pbot}->{messagehistory}->{database}->get_message_account($newnick, $user, $host, $nick);
|
||||||
$self->{pbot}->{messagehistory}->{database}->devalidate_all_channels($newnick_account, $self->{pbot}->{antiflood}->{NEEDS_CHECKBAN});
|
$self->{pbot}->{messagehistory}->{database}->devalidate_all_channels($newnick_account, $self->{pbot}->{antiflood}->{NEEDS_CHECKBAN});
|
||||||
$self->{pbot}->{messagehistory}->{database}->update_hostmask_data($newnick_account, { last_seen => scalar gettimeofday });
|
$self->{pbot}->{messagehistory}->{database}->update_hostmask_data($newnick_account, { last_seen => scalar gettimeofday });
|
||||||
|
|
||||||
@ -327,6 +327,7 @@ sub on_nickchange {
|
|||||||
$self->{pbot}->{registry}->get_value('antiflood', 'nick_flood_threshold'),
|
$self->{pbot}->{registry}->get_value('antiflood', 'nick_flood_threshold'),
|
||||||
$self->{pbot}->{registry}->get_value('antiflood', 'nick_flood_time_threshold'),
|
$self->{pbot}->{registry}->get_value('antiflood', 'nick_flood_time_threshold'),
|
||||||
$self->{pbot}->{messagehistory}->{MSG_NICKCHANGE});
|
$self->{pbot}->{messagehistory}->{MSG_NICKCHANGE});
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user