From 791fd4b6602e5cf9c35f133ea8fefe9c2c108244 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 25 Jan 2020 20:35:56 -0800 Subject: [PATCH] DualIndexHashObject: hide _name key from set output --- PBot/DualIndexHashObject.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PBot/DualIndexHashObject.pm b/PBot/DualIndexHashObject.pm index 973eefad..3943528c 100644 --- a/PBot/DualIndexHashObject.pm +++ b/PBot/DualIndexHashObject.pm @@ -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"; }