barnowl_perlaim
|
Last change
on this file since 7a1c90d was
7a1c90d,
checked in by Geoffrey Thomas <geofft@mit.edu>, 18 years ago
|
|
Skeleton AIM module, and Net::OSCAR 1.925
|
-
Property mode set to
100644
|
|
File size:
482 bytes
|
| Line | |
|---|
| 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 | # Maximum number of buddies is minimum of this and the "buddylist 3 response" value |
|---|
| 8 | if($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.