mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
HashObject: do not make copy of $data hash
This commit is contained in:
parent
02f1995654
commit
7ba505faf5
@ -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}.";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user