source: perl/modules/AIM/lib/Net/OSCAR/Callbacks/3/buddy_rights_response.pm @ 7a1c90d

barnowl_perlaim
Last change on this file since 7a1c90d was 7a1c90d, checked in by Geoffrey Thomas <geofft@mit.edu>, 17 years ago
Skeleton AIM module, and Net::OSCAR 1.925
  • Property mode set to 100644
File size: 482 bytes
Line 
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# Maximum number of buddies is minimum of this and the "buddylist 3 response" value
8if($session->{bl_limits}->{buddies}) {
9        if($data{maxbuddies} < $session->{bl_limits}->{buddies}) {
10                $session->{bl_limits}->{buddies} = $data{maxbuddies};
11        }
12} else {
13        $session->{bl_limits}->{buddies} = $data{maxbuddies};
14}
15
16};
Note: See TracBrowser for help on using the repository browser.