line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::Skype; |
2
|
6
|
|
|
6
|
|
36
|
use strict; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
147
|
|
3
|
6
|
|
|
6
|
|
27
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
942
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub try { |
6
|
57
|
|
|
57
|
1
|
137
|
my ($class, $d) = @_; |
7
|
|
|
|
|
|
|
|
8
|
57
|
100
|
|
|
|
159
|
if ( index($d->ua, 'SkypeUriPreview') > -1 ) { |
9
|
2
|
|
|
|
|
8
|
my $h = { |
10
|
|
|
|
|
|
|
name => 'Skype URI Preview', |
11
|
|
|
|
|
|
|
is_bot => 1, |
12
|
|
|
|
|
|
|
}; |
13
|
|
|
|
|
|
|
|
14
|
2
|
100
|
|
|
|
6
|
if ($d->opt_version) { |
15
|
1
|
|
|
|
|
9
|
my ($version) = ($d->ua =~ m! Preview/([\d.]+)!); |
16
|
1
|
50
|
|
|
|
6
|
$h->{version} = $version if $version; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
2
|
|
|
|
|
7
|
return Duadua::Util->set_os($d, $h); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |