barnowl_perlaim
Last change
on this file since a1c2f06 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:
588 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 | my $type = "modify"; |
---|
| 8 | %data = protoparse($session, "buddylist_change")->unpack($snac->{data}); |
---|
| 9 | |
---|
| 10 | foreach 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.