Set userid and chatid explicitly to num for redis json msg
This commit is contained in:
@@ -252,8 +252,8 @@ my $parse_message = sub {
|
|||||||
$self->json ($send_to)->notify (
|
$self->json ($send_to)->notify (
|
||||||
$send_to => {
|
$send_to => {
|
||||||
from => 'craniac',
|
from => 'craniac',
|
||||||
userid => $userid,
|
userid => 0 + $userid,
|
||||||
chatid => $chatid,
|
chatid => 0 + $chatid,
|
||||||
plugin => $m->{plugin},
|
plugin => $m->{plugin},
|
||||||
message => $reply,
|
message => $reply,
|
||||||
},
|
},
|
||||||
@@ -297,8 +297,8 @@ my $parse_message = sub {
|
|||||||
$self->json ($send_to)->notify (
|
$self->json ($send_to)->notify (
|
||||||
$send_to => {
|
$send_to => {
|
||||||
from => 'craniac',
|
from => 'craniac',
|
||||||
userid => $userid,
|
userid => 0 + $userid,
|
||||||
chatid => $chatid,
|
chatid => 0 + $chatid,
|
||||||
plugin => $m->{plugin},
|
plugin => $m->{plugin},
|
||||||
message => $reply,
|
message => $reply,
|
||||||
},
|
},
|
||||||
@@ -322,8 +322,8 @@ my $parse_message = sub {
|
|||||||
$self->json ($send_to)->notify (
|
$self->json ($send_to)->notify (
|
||||||
$send_to => {
|
$send_to => {
|
||||||
from => 'craniac',
|
from => 'craniac',
|
||||||
userid => $userid,
|
userid => 0 + $userid,
|
||||||
chatid => $chatid,
|
chatid => 0 + $chatid,
|
||||||
plugin => $m->{plugin},
|
plugin => $m->{plugin},
|
||||||
message => $reply,
|
message => $reply,
|
||||||
},
|
},
|
||||||
@@ -365,8 +365,8 @@ my $parse_message = sub {
|
|||||||
$self->json ($send_to)->notify (
|
$self->json ($send_to)->notify (
|
||||||
$send_to => {
|
$send_to => {
|
||||||
from => 'craniac',
|
from => 'craniac',
|
||||||
userid => $userid,
|
userid => 0 + $userid,
|
||||||
chatid => $chatid,
|
chatid => 0 + $chatid,
|
||||||
plugin => $m->{plugin},
|
plugin => $m->{plugin},
|
||||||
message => $reply,
|
message => $reply,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user