barnowl_perlaim
Last change
on this file since a1c2f06 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:
687 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 $buddy = $data{screenname}; |
---|
| 8 | my($grpname, $group) = $session->findbuddy($buddy); |
---|
| 9 | return unless $grpname; |
---|
| 10 | |
---|
| 11 | delete $session->{userinfo}->{$buddy}; |
---|
| 12 | my $budinfo = $group->{members}->{$buddy}; |
---|
| 13 | foreach (keys %$budinfo) { |
---|
| 14 | delete $budinfo->{$_} unless /^(?:buddyid|data|__BLI.*|alias|online|comment|screenname)$/; |
---|
| 15 | } |
---|
| 16 | $budinfo->{online} = 0; |
---|
| 17 | |
---|
| 18 | $connection->log_print(OSCAR_DBG_DEBUG, "And so, another former ally has abandoned us. Curse you, $buddy!"); |
---|
| 19 | $session->callback_buddy_out($budinfo->{screenname}, $grpname); |
---|
| 20 | |
---|
| 21 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.