Set userid and chatid explicitly to num for redis json msg

This commit is contained in:
eleksir
2022-03-26 09:49:30 +03:00
parent 6d8097d060
commit 6cd7c4091b
2 changed files with 11 additions and 10 deletions

View File

@@ -41,8 +41,8 @@ sub Command {
my $reply;
my ($userid, $username, $fullname, $highlight, $visavi) = Highlight ($msg);
my $rmsg = clone ($redismsg);
$rmsg->{userid} = $userid;
$rmsg->{chatid} = $chatid;
$rmsg->{userid} = 0 + $userid;
$rmsg->{chatid} = 0 + $chatid;
if ($chatid >= 0) {
$rmsg->{mode} = 'private';