Bot/BasicBot/Pluggable/Module/Auth.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 42 CC 2 SCAR 9.8
CC
2
Cov
0%
authed
6.0
help
2.0
DUMMY
2.0
CRAP 2.7
1 package Irssi::Bot::BasicBot::Pluggable::Module::Auth;
2 use strict;
3 use warnings;
4 use base qw(Bot::BasicBot::Pluggable::Module);
5 use experimental 'signatures';
6  
7 sub help ($self) {
8 return "Authenticator for admin-level commands";
9 }
10  
11 sub authed ($self, $username) {
12 return 1
13 if $username eq '@@@ local user @@@';
14 return 0;
15 }
16  
17 sub DUMMY { 1 }
18  
19 1;
20  
21 package #
22 Bot::BasicBot::Pluggable::Module::Auth;
23 use strict;
24 use warnings;
25 use base qw(Irssi::Bot::BasicBot::Pluggable::Module::Auth);
26  
27 sub DUMMY { 1 }
28  
29 1;
30