Fix minor uninitialized object warning

This commit is contained in:
Pragmatic Software 2022-01-01 21:32:01 -08:00
parent f78e7bea88
commit c04467b50f
2 changed files with 3 additions and 3 deletions

View File

@ -389,7 +389,7 @@ sub add {
sub remove {
my ($self, $primary_index, $secondary_index, $data_index, $dont_save) = @_;
my $lc_primary_index = lc $primary_index;
my $lc_secondary_index = lc $secondary_index;
my $lc_secondary_index = lc $secondary_index if defined $secondary_index;
if (not exists $self->{hash}->{$lc_primary_index}) {
my $result = "$self->{name}: $primary_index not found; similiar matches: ";

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4422,
BUILD_DATE => "2021-11-19",
BUILD_REVISION => 4430,
BUILD_DATE => "2022-01-01",
};
sub initialize {}