summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2009-12-07 00:32:42 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-12-21 10:30:43 +0100
commit338b9baef1bfe6b40cc88434903f6c1d01391ba3 (patch)
treeb55ae8f64702418a5a865b9e4be565ad23227f4a /data/rbot
parentc3e2d59d3e081141fcdcd5ee43469c3c4a7586db (diff)
lastfm: fix detection of invalid username on now_playing
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/lastfm.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb
index cf799045..3d0b79be 100644
--- a/data/rbot/plugins/lastfm.rb
+++ b/data/rbot/plugins/lastfm.rb
@@ -336,7 +336,7 @@ class LastFmPlugin < Plugin
return
end
if xml.class == Net::HTTPBadRequest
- if doc.root.elements["error"].text == "Invalid user name supplied" then
+ if doc.root.elements["error"].attributes["code"] == "6" then
m.reply _("%{user} doesn't exist on last.fm, perhaps they need to: lastfm user <username>") % {
:user => user
}