File Coverage

blib/lib/Net/OSCAR/Callbacks/3/buddy_rights_response.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 14 100.0


line stmt bran cond sub pod time code
1             package Net::OSCAR::Callbacks;
2             BEGIN {
3 1     1   35 $Net::OSCAR::Callbacks::VERSION = '1.928';
4             }
5 1     1   10 use strict;
  1         3  
  1         78  
6 1     1   9 use warnings;
  1         3  
  1         58  
7 1     1   7 use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data);
  1         3  
  1         305  
8             sub {
9              
10             # Maximum number of buddies is minimum of this and the "buddylist 3 response" value
11             if($session->{bl_limits}->{buddies}) {
12             if($data{maxbuddies} < $session->{bl_limits}->{buddies}) {
13             $session->{bl_limits}->{buddies} = $data{maxbuddies};
14             }
15             } else {
16             $session->{bl_limits}->{buddies} = $data{maxbuddies};
17             }
18              
19             };