From cb69e21777bac1c715ce505aeab5f2ce03ade71e Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Tue, 18 Mar 2008 12:34:23 -0400 Subject: shorturls.rb: ignore error with include WWW since the module is not defined by newer versions of shorturl gem --- data/rbot/plugins/shortenurls.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/rbot/plugins/shortenurls.rb b/data/rbot/plugins/shortenurls.rb index a7577e1b..81682581 100644 --- a/data/rbot/plugins/shortenurls.rb +++ b/data/rbot/plugins/shortenurls.rb @@ -15,7 +15,8 @@ require "shorturl" require "uri" class ShortenURLs < Plugin - include WWW + # 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'], -- cgit v1.2.3