line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::Barkrowler; |
2
|
6
|
|
|
6
|
|
903
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
169
|
|
3
|
6
|
|
|
6
|
|
28
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
142
|
|
4
|
6
|
|
|
6
|
|
32
|
use Duadua::Util qw//; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
1095
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
43
|
|
|
43
|
1
|
83
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
43
|
100
|
|
|
|
115
|
if ( index($d->ua, 'Barkrowler/') > -1 ) { |
10
|
2
|
|
|
|
|
9
|
my $h = { |
11
|
|
|
|
|
|
|
name => 'Barkrowler', |
12
|
|
|
|
|
|
|
is_bot => 1, |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
2
|
100
|
|
|
|
7
|
if ($d->opt_version) { |
16
|
1
|
|
|
|
|
4
|
my ($version) = ($d->ua =~ m!^Barkrowler/([\d.]+)!); |
17
|
1
|
50
|
|
|
|
11
|
$h->{version} = $version if $version; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
|
|
9
|
return Duadua::Util->set_os($d, $h); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |