3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +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 $data->{_name} = $index; # preserve case of index
$self->{hash}->{$lc_index} = {%$data}; $self->{hash}->{$lc_index} = $data;
$self->save unless $dont_save; $self->save unless $dont_save;
return "$index added to $self->{name}."; return "$index added to $self->{name}.";
} }