From 8d54e0108503016811b4f4626bb476410b206d21 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 26 Mar 2017 20:47:50 +1300 Subject: Enforce setting of scalar configs --- idalius.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'idalius.pl') diff --git a/idalius.pl b/idalius.pl index fe195dc..cd4bf16 100755 --- a/idalius.pl +++ b/idalius.pl @@ -25,9 +25,11 @@ my $irc = POE::Component::IRC->spawn( ) or die "Failed to create new PoCo-IRC: $!"; # Plugins -$irc->plugin_add('NickServID', POE::Component::IRC::Plugin::NickServID->new( - Password => $config{password} -)); +$config{password} and $irc->plugin_add( + 'NickServID', + POE::Component::IRC::Plugin::NickServID->new( + Password => $config{password} + )); POE::Session->create( package_states => [ -- cgit v1.1