diff --git a/PBot/HashObject.pm b/PBot/HashObject.pm index e9f15f45..91003343 100644 --- a/PBot/HashObject.pm +++ b/PBot/HashObject.pm @@ -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}."; }