diff options
author | David Phillips <david@sighup.nz> | 2018-09-21 14:10:58 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-09-21 14:13:28 +1200 |
commit | cfa90dc368a1ac3441185c94d287829d3985ef6d (patch) | |
tree | 7ded14e51cad7f85e5a60ec7fa8abe41d58319cc /Plugin/Timezone.pm | |
parent | 62555509a4ced02f05f44e658abf86d7f665d63f (diff) | |
download | idalius-cfa90dc368a1ac3441185c94d287829d3985ef6d.tar.xz |
Validate configuration parameter presence and type
Diffstat (limited to 'Plugin/Timezone.pm')
-rw-r--r-- | Plugin/Timezone.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Plugin/Timezone.pm b/Plugin/Timezone.pm index c679340..5e649b1 100644 --- a/Plugin/Timezone.pm +++ b/Plugin/Timezone.pm @@ -4,6 +4,7 @@ use strict; use warnings; use DateTime; +use IdaliusConfig qw/assert_dict/; my $config; @@ -13,6 +14,8 @@ sub configure { shift; # run_command $config = shift; + IdaliusConfig::assert_dict($config, $self, "timezone"); + $cmdref->("time", sub { $self->time(@_); } ); return $self; |