aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Admin.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin/Admin.pm')
-rw-r--r--Plugin/Admin.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Plugin/Admin.pm b/Plugin/Admin.pm
index 9313110..ff64d83 100644
--- a/Plugin/Admin.pm
+++ b/Plugin/Admin.pm
@@ -3,6 +3,8 @@ package Plugin::Admin;
use strict;
use warnings;
+use IdaliusConfig qw/assert_scalar assert_list/;
+
my $config;
sub configure {
@@ -11,6 +13,10 @@ sub configure {
shift; # run_command
$config = shift;
+ IdaliusConfig::assert_list($config, $self, "admins");
+ IdaliusConfig::assert_scalar($config, $self, "must_id");
+ IdaliusConfig::assert_scalar($config, $self, "quit_msg");
+
$cmdref->("say", sub { $self->say(@_); } );
$cmdref->("action", sub { $self->do_action(@_); } );