From 64b4d8a53c02b0adea309dca0a11fc5b82c29078 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 30 Jul 2023 16:46:04 -0700 Subject: [PATCH] Handlers/Server: fix constant look-up (was previously moved from hash to constant) --- lib/PBot/Core/Handlers/Server.pm | 4 ++-- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/PBot/Core/Handlers/Server.pm b/lib/PBot/Core/Handlers/Server.pm index cb3264e0..22c74a11 100644 --- a/lib/PBot/Core/Handlers/Server.pm +++ b/lib/PBot/Core/Handlers/Server.pm @@ -131,7 +131,7 @@ sub on_nickchange($self, $event_type, $event) { } my $message_account = $self->{pbot}->{messagehistory}->{database}->get_message_account($nick, $user, $host); - $self->{pbot}->{messagehistory}->{database}->devalidate_all_channels($message_account, $self->{pbot}->{antiflood}->{NEEDS_CHECKBAN}); + $self->{pbot}->{messagehistory}->{database}->devalidate_all_channels($message_account, $self->{pbot}->{antiflood}->NEEDS_CHECKBAN); my $channels = $self->{pbot}->{nicklist}->get_channels($newnick); foreach my $channel (@$channels) { next if $channel !~ m/^#/; @@ -140,7 +140,7 @@ sub on_nickchange($self, $event_type, $event) { $self->{pbot}->{messagehistory}->{database}->update_hostmask_data("$nick!$user\@$host", {last_seen => scalar time}); 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!$user\@$host", {last_seen => scalar time}); $self->{pbot}->{antiflood}->check_flood( diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 41a01e07..66e0622b 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4681, - BUILD_DATE => "2023-07-19", + BUILD_REVISION => 4682, + BUILD_DATE => "2023-07-30", }; sub initialize {}