diff --git a/modules/Bitly.pm b/modules/Bitly.pm index bf17d2d..a6779a1 100644 --- a/modules/Bitly.pm +++ b/modules/Bitly.pm @@ -13,8 +13,8 @@ use URI::Escape; sub _init { # Check for required configuration values. - if (!(conf_get('bitly:user'))[0][0] or !(conf_get('bitly:key'))[0][0]) { - err(2, 'Please verify that you have bitly_user and bitly_key defined in your configuration file.', 0); + if (!conf_get('bitly:user') or !conf_get('bitly:key')) { + err(2, 'Bitly: Please verify that you have bitly_user and bitly_key defined in your configuration file.', 0); return; } # Create the SHORTEN and REVERSE commands.