« blib/lib/Net/OSCAR/Callbacks/1/incoming_extended_information.pm
↑ Summary
blib/lib/Net/OSCAR/Callbacks/1/self_information.pm »
| 1 | package Net::OSCAR::Callbacks; | ||||||||||||
| 2 | 1 | ▶ | BEGIN { | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 1 | $Net::OSCAR::Callbacks::VERSION = '1.928'; | |||||||||||
| 4 | } | ||||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 1 | ▶ | use vars qw($connection $snac $conntype $family $subtype $data $reqid $reqdata $session $protobit %data); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 0 | ▶ | sub { | ||||||||||
|
Subroutine
__ANON__: not called CC=7 SCAR=40.3
| |||||||||||||
| 9 | |||||||||||||
| 10 | 0 | ▶ | if($data{error}) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 11 | 0 | my $error = $data{error}; | |||||||||||
| 12 | 0 | ▶ | $session->crapout($connection, "Invalid screenname.") if $error == 0x01; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 13 | 0 | ▶ | $session->crapout($connection, "Invalid password.") if $error == 0x05; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 14 | 0 | ▶ | $session->crapout($connection, "You've been connecting too frequently.") if $error == 0x18; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 15 | 0 | ▶ | my($errstr) = ((ERRORS)[$error]) || "unknown error"; | ||||||||||
|
Condition0%0/2
('Invalid error', 'Invalid SNAC', 'Sending too fast to host', 'Sending too fast to client', '%s is not logged in, so the attempted operation (sending an IM, getting user information) was unsuccessful', 'Service unavailable', 'Service not defined', 'Obsolete SNAC', 'Not supported by host', 'Not supported by client', 'Refused by client', 'Reply too big', 'Responses lost', 'Request denied', 'Busted SNAC payload', 'Insufficient rights', '%s is in your permit or deny list', 'Too evil (sender)', 'Too evil (receiver)', 'User temporarily unavailable', 'No match', 'List overflow', 'Request ambiguous', 'Queue full', 'Not while on AOL', 'Unknown error 25', 'Unknown error 26', 'Unknown error 27', 'Unknown error 28', 'There have been too many recent signons from this address. Please wait a few minutes and try again.')[$error] || 'unknown error'
MC/DC0%0/1
('Invalid error', 'Invalid SNAC', 'Sending too fast to host', 'Sending too fast to client', '%s is not logged in, so the attempted operation (sending an IM, getting user information) was unsuccessful', 'Service unavailable', 'Service not defined', 'Obsolete SNAC', 'Not supported by host', 'Not supported by client', 'Refused by client', 'Reply too big', 'Responses lost', 'Request denied', 'Busted SNAC payload', 'Insufficient rights', '%s is in your permit or deny list', 'Too evil (sender)', 'Too evil (receiver)', 'User temporarily unavailable', 'No match', 'List overflow', 'Request ambiguous', 'Queue full', 'Not while on AOL', 'Unknown error 25', 'Unknown error 26', 'Unknown error 27', 'Unknown error 28', 'There have been too many recent signons from this address. Please wait a few minutes and try again.')[$error] || 'unknown error'
('Invalid error', 'Invalid SNAC', 'Sending too fast to host', 'Sending too fast to client', '%s is not logged in, so the attempted operation (sending an IM, getting user information) was unsuccessful', 'Service unavailable', 'Service not defined', 'Obsolete SNAC', 'Not supported by host', 'Not supported by client', 'Refused by client', 'Reply too big', 'Responses lost', 'Request denied', 'Busted SNAC payload', 'Insufficient rights', '%s is in your permit or deny list', 'Too evil (sender)', 'Too evil (receiver)', 'User temporarily unavailable', 'No match', 'List overflow', 'Request ambiguous', 'Queue full', 'Not while on AOL', 'Unknown error 25', 'Unknown error 26', 'Unknown error 27', 'Unknown error 28', 'There have been too many recent signons from this address. Please wait a few minutes and try again.')[$error]
Truth table0%0/2
A
A= ('Invalid error', 'Invalid SNAC', 'Sending too fast to host', 'Sending too fast to client', '%s is not logged in, so the attempted operation (sending an IM, getting user information) was unsuccessful', 'Service unavailable', 'Service not defined', 'Obsolete SNAC', 'Not supported by host', 'Not supported by client', 'Refused by client', 'Reply too big', 'Responses lost', 'Request denied', 'Busted SNAC payload', 'Insufficient rights', '%s is in your permit or deny list', 'Too evil (sender)', 'Too evil (receiver)', 'User temporarily unavailable', 'No match', 'List overflow', 'Request ambiguous', 'Queue full', 'Not while on AOL', 'Unknown error 25', 'Unknown error 26', 'Unknown error 27', 'Unknown error 28', 'There have been too many recent signons from this address. Please wait a few minutes and try again.')[$error]
| |||||||||||||
| 16 | 0 | ▶ | $errstr .= " ($data{error_details})" if $data{error_details}; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 17 | 0 | $session->crapout($connection, $errstr, $error); | |||||||||||
| 18 | 0 | return 0; | |||||||||||
| 19 | } else { | ||||||||||||
| 20 | 0 | $connection->log_print(OSCAR_DBG_SIGNON, "Login OK - connecting to BOS"); | |||||||||||
| 21 | $session->addconn( | ||||||||||||
| 22 | auth => $data{auth_cookie}, | ||||||||||||
| 23 | conntype => CONNTYPE_BOS, | ||||||||||||
| 24 | description => "basic OSCAR service", | ||||||||||||
| 25 | peer => $data{server_ip} | ||||||||||||
| 26 | 0 | ); | |||||||||||
| 27 | 0 | $connection->{closing} = 1; | |||||||||||
| 28 | 0 | $connection->disconnect; | |||||||||||
| 29 | 0 | $session->{screenname} = $data{screenname}; | |||||||||||
| 30 | 0 | $session->{email} = $data{email}; | |||||||||||
| 31 | |||||||||||||
| 32 | 0 | Net::OSCAR::Screenname->new(\$session->{screenname}); | |||||||||||
| 33 | } | ||||||||||||
| 34 | |||||||||||||
| 35 | 1 | }; | |||||||||||