line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::Msnbot; |
2
|
6
|
|
|
6
|
|
41
|
use strict; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
168
|
|
3
|
6
|
|
|
6
|
|
28
|
use warnings; |
|
6
|
|
|
|
|
17
|
|
|
6
|
|
|
|
|
1142
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub try { |
6
|
175
|
|
|
175
|
1
|
335
|
my ($class, $d) = @_; |
7
|
|
|
|
|
|
|
|
8
|
175
|
100
|
|
|
|
302
|
if ( index($d->ua, 'msnbot') > -1 ) { |
9
|
4
|
|
|
|
|
16
|
my $h = { |
10
|
|
|
|
|
|
|
name => 'msnbot', |
11
|
|
|
|
|
|
|
is_bot => 1, |
12
|
|
|
|
|
|
|
}; |
13
|
|
|
|
|
|
|
|
14
|
4
|
100
|
|
|
|
11
|
if ($d->opt_version) { |
15
|
2
|
|
|
|
|
16
|
my ($version) = ($d->ua =~ m!/([\d.a-z]+)!); |
16
|
2
|
50
|
|
|
|
13
|
$h->{version} = $version if $version; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
4
|
|
|
|
|
17
|
return $h; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |