| 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 |