3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

DualIndexHashObject: hide _name key from set output

This commit is contained in:
Pragmatic Software 2020-01-25 20:35:56 -08:00
parent c586a08db6
commit 791fd4b660

View File

@ -222,6 +222,7 @@ sub set {
my $result = "[$name1] $name2 keys:\n";
my $comma = '';
foreach my $key (sort keys %{ $self->{hash}->{$lc_primary_index}->{$lc_secondary_index} }) {
next if $key eq '_name';
$result .= $comma . "$key => " . $self->{hash}->{$lc_primary_index}->{$lc_secondary_index}->{$key};
$comma = ";\n";
}