diff --git a/lib/PBot/Core/Storage/DualIndexHashObject.pm b/lib/PBot/Core/Storage/DualIndexHashObject.pm index a7945d0b..331e319e 100644 --- a/lib/PBot/Core/Storage/DualIndexHashObject.pm +++ b/lib/PBot/Core/Storage/DualIndexHashObject.pm @@ -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: "; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index e88123d1..a3125b22 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 => 4422, - BUILD_DATE => "2021-11-19", + BUILD_REVISION => 4430, + BUILD_DATE => "2022-01-01", }; sub initialize {}