summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/lastfm.rb
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2010-09-18 11:22:07 +0300
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-09-23 14:57:41 +0200
commit6345c6652f037d20c46a90e79aa59d85ec7fe1a6 (patch)
tree430f91159edbde311647c1f1d3fd39384159bb2b /data/rbot/plugins/lastfm.rb
parentedd4f0e4f2cc93d8b02047384aa61f2f830b897a (diff)
lastfm: fix set user suggestion reply
Diffstat (limited to 'data/rbot/plugins/lastfm.rb')
-rw-r--r--data/rbot/plugins/lastfm.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/rbot/plugins/lastfm.rb b/data/rbot/plugins/lastfm.rb
index ad013bba..2e4c5114 100644
--- a/data/rbot/plugins/lastfm.rb
+++ b/data/rbot/plugins/lastfm.rb
@@ -337,8 +337,9 @@ class LastFmPlugin < Plugin
end
if xml.class == Net::HTTPBadRequest
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
+ m.reply _("%{user} doesn't exist on last.fm, perhaps they need to: %{prefix}lastfm set user <username>") % {
+ :user => user,
+ :prefix => @bot.config['core.address_prefix'].first
}
return
else