blib/lib/Horris/Connection/Plugin/PowerManager.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 2 SCAR 15.4
CC
2
Cov
0%
irc_privmsg
6.0
BEGIN
2.0
CRAP 4.7
1 package Horris::Connection::Plugin::PowerManager;
2 # ABSTRACT: PowerManager Plugin on Horris
3  
4  
5 use Moose;
6 extends 'Horris::Connection::Plugin';
7 with 'MooseX::Role::Pluggable::Plugin';
8  
9 sub irc_privmsg {
10 my ($self, $message) = @_;
11 my $msg = $message->message;
12 my $botname = $self->connection->nickname;
13 $self->connection->irc->disconnect if $msg =~ m{^$botname\S*\s+(:?꺼져|껒여|exit|quit)};
14 return $self->pass;
15 }
16  
17 __PACKAGE__->meta->make_immutable;
18  
19 1;
20  
21 __END__