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:
761 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 | $session->{ip} = $data{ip} if $data{ip}; |
---|
8 | |
---|
9 | if(exists($data{stealth_status})) { |
---|
10 | my $stealth_state; |
---|
11 | if($data{stealth_status} & 0x100) { |
---|
12 | $stealth_state = 1; |
---|
13 | } else { |
---|
14 | $stealth_state = 0; |
---|
15 | } |
---|
16 | |
---|
17 | if($stealth_state xor $session->{stealth}) { |
---|
18 | $connection->log_print(OSCAR_DBG_DEBUG, "Stealth state changed: ", $stealth_state); |
---|
19 | $session->{stealth} = $stealth_state; |
---|
20 | $session->callback_stealth_changed($stealth_state); |
---|
21 | } |
---|
22 | } |
---|
23 | |
---|
24 | |
---|
25 | if($data{session_length}) { |
---|
26 | $connection->log_print(OSCAR_DBG_DEBUG, "Someone else signed on with this screenname? Session length == $data{session_length}"); |
---|
27 | } |
---|
28 | |
---|
29 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.