mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-27 05:02:34 +01:00
DualIndexHashObject: Fix precedence issue
This commit is contained in:
parent
96b1ffde2d
commit
39683e6da3
@ -396,7 +396,7 @@ sub remove {
|
||||
$name2 = "\"$name2\"" if $name2 =~ / /;
|
||||
|
||||
# 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};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user