+ # starting from about shorturl 0.8.4, the WWW module is not defined
+ include WWW rescue nil
+
+ Config.register Config::ArrayValue.new('shortenurls.services_blacklist',
+ :default => ['rubyurl', 'shorterlink'],
+ :requires_rescan => true,
+ :desc => "List of nonfunctioning shorturl services")
+ Config.register Config::StringValue.new('shortenurls.favorite_service',
+ :default => 'tinyurl',
+ :desc => "Default shortening service. Probably only applies when other plugins " +
+ "use this one for shortening")