line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::OSCAR::Callbacks; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
1
|
|
|
1
|
|
28
|
$Net::OSCAR::Callbacks::VERSION = '1.928'; |
4
|
|
|
|
|
|
|
} |
5
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
52
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
68
|
|
7
|
1
|
|
|
1
|
|
6
|
use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
397
|
|
8
|
|
|
|
|
|
|
sub { |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
$session->{gotbl} = 1; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
$session->{bl_limits}->{groups} = $data{maximums}->[1]; |
13
|
|
|
|
|
|
|
$session->{bl_limits}->{permits} = $data{maximums}->[2]; |
14
|
|
|
|
|
|
|
$session->{bl_limits}->{denies} = $data{maximums}->[3]; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# Buddy limit is minimum of this and the buddy rights response value |
17
|
|
|
|
|
|
|
if($session->{bl_limits}->{buddies}) { |
18
|
|
|
|
|
|
|
if($data{maximums}->[0] < $session->{bl_limits}->{buddies}) { |
19
|
|
|
|
|
|
|
$session->{bl_limits}->{buddies} = $data{maximums}->[0]; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
} else { |
22
|
|
|
|
|
|
|
$session->{bl_limits}->{buddies} = $data{maximums}->[0]; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
}; |