X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FFonBot%2FPlugin%2FCommon.pm;h=4c34d3f01b47314ebf42165043ebb27448062b22;hb=refs%2Fheads%2Fmaster;hp=d61d9153660a1d2761ee4bc5bbbb3616bc8dc7ae;hpb=962dff7b76ec32cd68e0e96b8d3cc6d1f9759d00;p=app-fonbot-daemon.git diff --git a/lib/App/FonBot/Plugin/Common.pm b/lib/App/FonBot/Plugin/Common.pm index d61d915..4c34d3f 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_3'; +our $VERSION = '0.001'; 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] @@ -154,7 +154,7 @@ Marius Gavrilescu C<< >> =head1 COPYRIGHT AND LICENSE -Copyright 2013 Marius Gavrilescu +Copyright 2013-2015 Marius Gavrilescu This file is part of fonbotd.