line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bot::Cobalt::IRC::Event::Topic; |
2
|
|
|
|
|
|
|
$Bot::Cobalt::IRC::Event::Topic::VERSION = '0.021003'; |
3
|
6
|
|
|
6
|
|
16672
|
use strictures 2; |
|
6
|
|
|
|
|
1131
|
|
|
6
|
|
|
|
|
193
|
|
4
|
6
|
|
|
6
|
|
1195
|
use Bot::Cobalt::Common qw/:types :string/; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
33
|
|
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
710
|
use Moo; |
|
6
|
|
|
|
|
7774
|
|
|
6
|
|
|
|
|
32
|
|
7
|
|
|
|
|
|
|
extends 'Bot::Cobalt::IRC::Event::Channel'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has topic => ( |
10
|
|
|
|
|
|
|
required => 1, |
11
|
|
|
|
|
|
|
is => 'rw', |
12
|
|
|
|
|
|
|
isa => Str, |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has stripped => ( |
16
|
|
|
|
|
|
|
lazy => 1, |
17
|
|
|
|
|
|
|
is => 'ro', |
18
|
|
|
|
|
|
|
isa => Str, |
19
|
|
|
|
|
|
|
default => sub { |
20
|
|
|
|
|
|
|
strip_color( strip_formatting( $_[0]->topic ) ) |
21
|
|
|
|
|
|
|
}, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
__END__ |