source: perl/modules/AIM/lib/Net/OSCAR/Callbacks/19/buddylist_modify.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: 588 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
7my $type = "modify";
8%data = protoparse($session, "buddylist_change")->unpack($snac->{data});
9
10foreach my $change (@{$data{changes}}) {
11        $connection->log_print_cond(OSCAR_DBG_DEBUG, sub { "Buddylist change $type:\n", Data::Dumper::Dumper($change) });
12        if($type eq "delete") {
13                Net::OSCAR::_BLInternal::blentry_clear($session, %$change);
14        } else {
15                Net::OSCAR::_BLInternal::blentry_set($session, %$change);
16        }
17}
18
19
20};
Note: See TracBrowser for help on using the repository browser.