File Coverage

blib/lib/Net/OSCAR/ServerCallbacks/2/get_away.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 14 100.0


line stmt bran cond sub pod time code
1             package Net::OSCAR::ServerCallbacks;
2             BEGIN {
3 1     1   18 $Net::OSCAR::ServerCallbacks::VERSION = '1.928';
4             }
5 1     1   6 use strict;
  1         2  
  1         21  
6 1     1   5 use warnings;
  1         3  
  1         31  
7 1     1   5 use vars qw($SESSIONS $SCREENNAMES %COOKIES $screenname $connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data);
  1         1  
  1         205  
8             sub {
9              
10             $connection->proto_send(reqid => $reqid, protobit => "incoming_profile", protodata => {
11             screenname => $data{screenname},
12             awaymsg => "Got away message at " . scalar(ctime(time())),
13             evil => 0,
14             flags => 0x20,
15             onsince => 0,
16             membersince => 0,
17             idle => 0,
18             capabilities => ""
19             });
20              
21             };
22