X-Git-Url: http://git.ieval.ro/?p=www-backpacktf.git;a=blobdiff_plain;f=lib%2FWWW%2FBackpackTF%2FUser.pm;h=539ec0f6d81af38e746c22c36eb9636af3027dcb;hp=6120ba406ec8298b823ffe1ff425148bedf10cf9;hb=0aaa9b980d349153117dbfa46a4dfae24ace1e25;hpb=6e8c48c3bedff8feac1d19abd5e201637582c32e diff --git a/lib/WWW/BackpackTF/User.pm b/lib/WWW/BackpackTF/User.pm index 6120ba4..539ec0f 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_001'; +our $VERSION = '0.001001'; 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} } @@ -131,13 +131,17 @@ Returns the UNIX timestamp of this user's last backpack update for the specified =back +=head1 SEE ALSO + +L + =head1 AUTHOR Marius Gavrilescu, Emarius@ieval.roE =head1 COPYRIGHT AND LICENSE -Copyright (C) 2014 by Marius Gavrilescu +Copyright (C) 2014-2016 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,