Use Clone, just in case

This commit is contained in:
eleksir
2022-01-07 18:57:17 +03:00
parent c0477ccd7f
commit af12806134
2 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ use warnings;
use utf8;
use open qw (:std :utf8);
use Clone qw (clone);
# Модули для работы приложения
use Log::Any qw ($log);
use Math::Random::Secure qw (irand);
@@ -30,7 +31,7 @@ my $fwd_cnt = $c->{'forward_max'} // 5;
my $parse_message = sub {
my $self = shift;
my $m = shift;
my $answer = $m;
my $answer = clone ($m);
$answer->{from} = 'misc';
if (defined $answer->{misc}) {