mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
DualIndexHashObject: hide _name key from set output
This commit is contained in:
parent
c586a08db6
commit
791fd4b660
@ -222,6 +222,7 @@ sub set {
|
|||||||
my $result = "[$name1] $name2 keys:\n";
|
my $result = "[$name1] $name2 keys:\n";
|
||||||
my $comma = '';
|
my $comma = '';
|
||||||
foreach my $key (sort keys %{ $self->{hash}->{$lc_primary_index}->{$lc_secondary_index} }) {
|
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};
|
$result .= $comma . "$key => " . $self->{hash}->{$lc_primary_index}->{$lc_secondary_index}->{$key};
|
||||||
$comma = ";\n";
|
$comma = ";\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user