source: perl/modules/AIM/lib/Net/OSCAR/Callbacks/19/buddylist.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: 640 bytes
RevLine 
[7a1c90d]1package Net::OSCAR::Callbacks;
2use strict;
3use warnings;
4use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data);
5sub {
6
7$session->{blarray} ||= [];
8substr($data{data}, 0, 3) = "";
9substr($data{data}, -4, 4) = "" if $snac->{flags2};
10push @{$session->{blarray}}, $data{data};
11
12if($snac->{flags2}) {
13        $connection->log_printf(OSCAR_DBG_SIGNON, "Got buddylist segment -- need %d more.", $snac->{flags2});
14} else {
15        delete $session->{gotbl};
16
17        Net::OSCAR::_BLInternal::blparse($session, join("", @{$session->{blarray}}));
18        delete $session->{blarray};
19        got_buddylist($session, $connection);
20}
21
22};
Note: See TracBrowser for help on using the repository browser.