| 1 | package Bot::Cobalt::IRC::Event::Topic; | ||
| 2 | 1 | $Bot::Cobalt::IRC::Event::Topic::VERSION = '0.021003'; | |
| 3 | 2 | ▶ | use strictures 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use Bot::Cobalt::Common qw/:types :string/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | extends 'Bot::Cobalt::IRC::Event::Channel'; | |
| 8 | |||
| 9 | 1 | 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 | 0 | ▶ | default => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 20 | 0 | strip_color( strip_formatting( $_[0]->topic ) ) | |
| 21 | }, | ||
| 22 | 1 | ); | |
| 23 | |||
| 24 | 1 | 1; | |
| 25 | __END__ | ||