summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/shortenurls.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-17 06:17:18 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-17 06:17:18 +0000
commite047150a9014b11badc0224c57cd8ee4b01fbf07 (patch)
treea5a8520d43117bf9994835a8c8a9edda0fb32b1f /data/rbot/plugins/shortenurls.rb
parent9967d64936c75b40322259301d112b54ce5a84f5 (diff)
shortenurls plugin: service name can be nil
Thus, convert it to sym after ||ing it with m.plugin, not before
Diffstat (limited to 'data/rbot/plugins/shortenurls.rb')
-rw-r--r--data/rbot/plugins/shortenurls.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/shortenurls.rb b/data/rbot/plugins/shortenurls.rb
index 120d40d0..a7577e1b 100644
--- a/data/rbot/plugins/shortenurls.rb
+++ b/data/rbot/plugins/shortenurls.rb
@@ -55,7 +55,7 @@ class ShortenURLs < Plugin
return nil
end
- service = params[:service].to_sym || m.plugin.to_sym
+ service = (params[:service] || m.plugin).to_sym
service = :rubyurl if service == :shorturl
tried = []