summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/shortenurls.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-29 23:25:13 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-29 23:25:17 +0200
commit3a0e00e10d1e4cfdbd035baf1d483d072d73a986 (patch)
treeaea51dd412511ccca3c22373e57f0c0c54898fbd /data/rbot/plugins/shortenurls.rb
parentd3bd37eac4fab5ff553e3b669195b1c950e76ab0 (diff)
shortenurls plugin: get rid of WWW:: namespace entirely
Diffstat (limited to 'data/rbot/plugins/shortenurls.rb')
-rw-r--r--data/rbot/plugins/shortenurls.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/plugins/shortenurls.rb b/data/rbot/plugins/shortenurls.rb
index 81682581..7eeb005f 100644
--- a/data/rbot/plugins/shortenurls.rb
+++ b/data/rbot/plugins/shortenurls.rb
@@ -64,10 +64,10 @@ class ShortenURLs < Plugin
begin
tried << service
- raise WWW::InvalidService, "#{service} blacklisted" if @blacklist.include?(service)
- short = WWW::ShortURL.shorten(url, service)
- raise WWW::InvalidService, "#{service} returned an empty string for #{url}" unless short and not short.empty?
- rescue WWW::InvalidService
+ raise InvalidService, "#{service} blacklisted" if @blacklist.include?(service)
+ short = ShortURL.shorten(url, service)
+ raise InvalidService, "#{service} returned an empty string for #{url}" unless short and not short.empty?
+ rescue InvalidService
pool = services - tried
if pool.empty?
m.reply "#{service} failed, and I don't know what else to try next" unless params[:called]