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
|
Rev | Line | |
---|
[7a1c90d] | 1 | package Net::OSCAR::Callbacks; |
---|
| 2 | use strict; |
---|
| 3 | use warnings; |
---|
| 4 | use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data); |
---|
| 5 | sub { |
---|
| 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 |
---|
| 14 | if($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.