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:
parent
02f1995654
commit
7ba505faf5
@ -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}.";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user