X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FFonBot%2FPlugin%2FCommon.pm;h=4866db92b4116456e6d164f4cf6e318f1a901191;hb=31d9adeefab30e0e8902454d677d0df1ca26c6ee;hp=93de4be62a7e58ce12c12225e0f5d4fba65de9c0;hpb=3a98da812b3bd7beb54cc540a31a399d0ad220cd;p=app-fonbot-daemon.git diff --git a/lib/App/FonBot/Plugin/Common.pm b/lib/App/FonBot/Plugin/Common.pm index 93de4be..4866db9 100644 --- a/lib/App/FonBot/Plugin/Common.pm +++ b/lib/App/FonBot/Plugin/Common.pm @@ -1,6 +1,6 @@ package App::FonBot::Plugin::Common; -our $VERSION = '0.000_4'; +our $VERSION = '0.000_5'; use v5.14; use strict; @@ -51,7 +51,7 @@ sub sendmsg{ if (exists $commands{$touser}) { my $temp = thaw $commands{$touser}; - push $temp, $data; + push @$temp, $data; $commands{$touser} = freeze $temp } else { $commands{$touser} = freeze [$data]