3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

HashObject: do not make copy of $data hash

This commit is contained in:
Pragmatic Software 2020-01-25 15:08:05 -08:00
parent 02f1995654
commit 7ba505faf5

View File

@ -190,7 +190,7 @@ sub add {
}
$data->{_name} = $index; # preserve case of index
$self->{hash}->{$lc_index} = {%$data};
$self->{hash}->{$lc_index} = $data;
$self->save unless $dont_save;
return "$index added to $self->{name}.";
}