From 9ff3eda44ba63a2cf128e82c95ed34aca461d6db Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Thu, 19 Apr 2012 20:50:08 +1200 Subject: [PATCH] More tweaks --- plugins/lastfm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lastfm.py b/plugins/lastfm.py index 4596754..cc4d854 100755 --- a/plugins/lastfm.py +++ b/plugins/lastfm.py @@ -38,12 +38,12 @@ def lastfm(inp, nick='', say=None, db=None, bot=None): if 'error' in response: if inp: # specified a user name - return "error: %s" % response["message"] + return "Error: %s." % response["message"] else: return "Your nick is not a LastFM account. Try '.lastfm [user]'" if not "track" in response["recenttracks"] or len(response["recenttracks"]["track"]) == 0: - return "No recent tracks for user \x02%s\x0F found" % user + return 'No recent tracks for user "%s" found.' % user tracks = response["recenttracks"]["track"]