3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-30 07:59:42 +01:00

DualIndexHashObject: Fix precedence issue

This commit is contained in:
Pragmatic Software 2020-04-24 18:17:25 -07:00
parent 96b1ffde2d
commit 39683e6da3

View File

@ -396,7 +396,7 @@ sub remove {
$name2 = "\"$name2\"" if $name2 =~ / /; $name2 = "\"$name2\"" if $name2 =~ / /;
# remove primary group if no more secondaries # remove primary group if no more secondaries
if (grep { $_ ne '_name' } keys %{$self->{hash}->{$lc_primary_index}} == 0) { if ((grep { $_ ne '_name' } keys %{$self->{hash}->{$lc_primary_index}}) == 0) {
delete $self->{hash}->{$lc_primary_index}; delete $self->{hash}->{$lc_primary_index};
} }