source: perl/modules/AIM/lib/Net/OSCAR/Callbacks/19/buddylist_3_response.pm @ 7a1c90d

barnowl_perlaim
Last change on this file since 7a1c90d was 7a1c90d, checked in by Geoffrey Thomas <geofft@mit.edu>, 16 years ago
Skeleton AIM module, and Net::OSCAR 1.925
  • Property mode set to 100644
File size: 670 bytes
RevLine 
[7a1c90d]1package Net::OSCAR::Callbacks;
2use strict;
3use warnings;
4use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data);
5sub {
6
7$session->{gotbl} = 1;
8
9$session->{bl_limits}->{groups} = $data{maximums}->[1];
10$session->{bl_limits}->{permits} = $data{maximums}->[2];
11$session->{bl_limits}->{denies} = $data{maximums}->[3];
12
13# Buddy limit is minimum of this and the buddy rights response value
14if($session->{bl_limits}->{buddies}) {
15        if($data{maximums}->[0] < $session->{bl_limits}->{buddies}) {
16                $session->{bl_limits}->{buddies} = $data{maximums}->[0];
17        }
18} else {
19        $session->{bl_limits}->{buddies} = $data{maximums}->[0];
20}
21
22};
Note: See TracBrowser for help on using the repository browser.