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:
614 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 | if(defined($connection->{auth})) { |
---|
8 | $connection->log_print(OSCAR_DBG_SIGNON, "Sending password."); |
---|
9 | my(%signon_data) = signon_tlv($session, delete($connection->{auth}), $data{key}); |
---|
10 | |
---|
11 | $session->svcdo(CONNTYPE_BOS, protobit => "signon", protodata => \%signon_data); |
---|
12 | } else { |
---|
13 | $connection->log_print(OSCAR_DBG_SIGNON, "Giving client authentication challenge."); |
---|
14 | $session->callback_auth_challenge($data{key}, "AOL Instant Messenger (SM)"); |
---|
15 | } |
---|
16 | |
---|
17 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.