summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorYaohan Chen <hagabaka@nanomachine.STUDENT.cwru.edu>2008-03-18 12:34:23 -0400
committerYaohan Chen <hagabaka@nanomachine.STUDENT.cwru.edu>2008-03-18 12:34:23 -0400
commitcb69e21777bac1c715ce505aeab5f2ce03ade71e (patch)
tree2da209e494e65ef71c4f22c853f57e9bff7af13d /data/rbot/plugins
parent6260e6cf683d6c709a90e49148dd4b058c90d82f (diff)
shorturls.rb: ignore error with include WWW since the module is not defined by newer versions of shorturl gem
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/shortenurls.rb3
1 files changed, 2 insertions, 1 deletions
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'],