aboutsummaryrefslogtreecommitdiff
path: root/Plugin/URL_Title.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin/URL_Title.pm')
-rw-r--r--Plugin/URL_Title.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm
index 9d20cd6..e93de26 100644
--- a/Plugin/URL_Title.pm
+++ b/Plugin/URL_Title.pm
@@ -6,6 +6,8 @@ use HTTP::Tiny;
use HTML::Parser;
use utf8;
+use IdaliusConfig qw/assert_scalar/;
+
my $config;
sub configure {
@@ -13,6 +15,10 @@ sub configure {
my $cmdref = shift;
shift; # run_command
$config = shift;
+
+ IdaliusConfig::assert_scalar($config, $self, "url_len");
+ die "url_len must be positive" if $config->{url_len} <= 0;
+
return $self;
}