summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/lastfm.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-21 17:42:25 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-21 17:42:25 +0200
commitf62d2eb537755b1724821c248ea9670ce2b1d038 (patch)
treef50a869fbba209a081fc1d05cf2437dc0eb009aa /data/rbot/plugins/lastfm.rb
parentf9a4d4fb440e076c978cfbee13918824c272458e (diff)
lastfm plugin: default to current nick for lookups
Diffstat (limited to 'data/rbot/plugins/lastfm.rb')
-rw-r--r--data/rbot/plugins/lastfm.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb
index 0118daff..2b58bbd4 100644
--- a/data/rbot/plugins/lastfm.rb
+++ b/data/rbot/plugins/lastfm.rb
@@ -165,8 +165,9 @@ class LastFmPlugin < Plugin
elsif @registry.has_key? ( m.sourcenick ) then
user = @registry[ m.sourcenick ]
else
- m.reply "I don't know who you are on last.fm. Use 'lastfm set username' to identify yourself."
- return
+ # m.reply "I don't know who you are on last.fm. Use 'lastfm set username' to identify yourself."
+ # return
+ user = m.sourcenick
end
page = nil
begin
@@ -255,8 +256,9 @@ class LastFmPlugin < Plugin
elsif @registry.has_key? ( m.sourcenick ) then
user = @registry[ m.sourcenick ]
else
- m.reply "I don't know who you are on last.fm. Use 'lastfm set username' to identify yourself."
- return
+ # m.reply "I don't know who you are on last.fm. Use 'lastfm set username' to identify yourself."
+ # return
+ user = m.sourcenick
end
begin
data = @bot.httputil.get("http://ws.audioscrobbler.com/1.0/user/#{user}/#{action}.txt")