From 6345c6652f037d20c46a90e79aa59d85ec7fe1a6 Mon Sep 17 00:00:00 2001 From: Raine Virta Date: Sat, 18 Sep 2010 11:22:07 +0300 Subject: lastfm: fix set user suggestion reply --- data/rbot/plugins/lastfm.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins/lastfm.rb') 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 ") % { - :user => user + m.reply _("%{user} doesn't exist on last.fm, perhaps they need to: %{prefix}lastfm set user ") % { + :user => user, + :prefix => @bot.config['core.address_prefix'].first } return else -- cgit v1.2.3