Silly/OutputLeet.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
Cobalt_register
2.0
Cobalt_unregister
2.0
CRAP 2.0
1 package Bot::Cobalt::Plugin::Silly::OutputLeet;
2 $Bot::Cobalt::Plugin::Silly::OutputLeet::VERSION = '0.031002';
3 use strictures 2;
4  
5 use Acme::LeetSpeak;
6 use Bot::Cobalt::Common;
7  
8 sub new { bless [], shift }
9  
10 sub Cobalt_register {
11 my ($self, $core) = splice @_, 0, 2;
12
13 $core->plugin_register( $self, 'USER',
14 'message'
15 );
16  
17 $core->log->info("Loaded");
18
19 PLUGIN_EAT_NONE
20 }
21  
22 sub Cobalt_unregister {
23 my ($self, $core) = splice @_, 0, 2;
24
25 $core->log->info("Unloaded");
26
27 PLUGIN_EAT_NONE
28 }
29  
30 sub Outgoing_message {
31 my ($self, $core) = splice @_, 0, 2;
32  
33 ${$_[2]} = leet(${$_[2]});
34  
35 PLUGIN_EAT_NONE
36 }
37  
38 1;
39 __END__