diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-17 06:17:18 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-17 06:17:18 +0000 |
commit | e047150a9014b11badc0224c57cd8ee4b01fbf07 (patch) | |
tree | a5a8520d43117bf9994835a8c8a9edda0fb32b1f /data | |
parent | 9967d64936c75b40322259301d112b54ce5a84f5 (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')
-rw-r--r-- | data/rbot/plugins/shortenurls.rb | 2 |
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 = [] |