summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/lastfm.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2006-01-04 17:20:31 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2006-01-04 17:20:31 +0000
commit6e113069ee929d5e0ea788da44c8eb981c3c4f74 (patch)
tree0976e1b8be69b9605f82c5660405771ffa4e43a8 /data/rbot/plugins/lastfm.rb
parent0a8521c9c11ef0de35de2ffaa84819ecbc44d3b7 (diff)
from #32
Diffstat (limited to 'data/rbot/plugins/lastfm.rb')
-rw-r--r--data/rbot/plugins/lastfm.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb
index 81b203f6..1d48b6d0 100644
--- a/data/rbot/plugins/lastfm.rb
+++ b/data/rbot/plugins/lastfm.rb
@@ -9,11 +9,8 @@ class LastFmPlugin < Plugin
def do_lastfm (m, params)
begin
- if params[:action] == "neighbors" then
+ if params[:action] == "neighbors" || params[:action] == "neighbours" then
params[:action]="neighbours"
- elsif params[:action] == "neighbours" then
- m.reply "Thats not how you spell neighbors, you dolt!"
- return
end
data = open("http://ws.audioscrobbler.com/1.0/user/#{params[:user]}/#{params[:action]}.txt")
m.reply "#{params[:action]} for #{params[:user]}:"