X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FWWW%2FBackpackTF%2FUser.pm;h=a27667ce879365087db509e23034990cfe87810f;hb=667a3b3753649a96ff368b20fffc940206892fea;hp=0d40c2c004024fbfafbf8ea683da31fefb23dacd;hpb=d6d9ee4cf6c290d7a5a566b2087b4fae41db6708;p=www-backpacktf.git diff --git a/lib/WWW/BackpackTF/User.pm b/lib/WWW/BackpackTF/User.pm index 0d40c2c..a27667c 100644 --- a/lib/WWW/BackpackTF/User.pm +++ b/lib/WWW/BackpackTF/User.pm @@ -3,7 +3,7 @@ package WWW::BackpackTF::User; use 5.014000; use strict; use warnings; -our $VERSION = '0.000_003'; +our $VERSION = '0.001'; sub new{ my ($class, $content) = @_; @@ -21,7 +21,7 @@ sub banned_backpack { shift->{backpack_tf_banned} } sub banned_economy { shift->{ban_economy} } sub banned_community { shift->{ban_community} } sub banned_vac { shift->{ban_vac} } -sub notifications { shift->{notifications} } +sub notifications { shift->{notifications} // 0 } sub value { shift->{backpack_value}->{shift // WWW::BackpackTF::TF2} } sub update { shift->{backpack_update}->{shift // WWW::BackpackTF::TF2} } @@ -141,7 +141,7 @@ Marius Gavrilescu, Emarius@ieval.roE =head1 COPYRIGHT AND LICENSE -Copyright (C) 2014 by Marius Gavrilescu +Copyright (C) 2014, 2015 by Marius Gavrilescu This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or,