From 0998cc6709808bc4e4dc0af492f2cddd14cb4bad Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Thu, 19 Apr 2012 13:31:47 +1200 Subject: [PATCH] Damn you crappy code editor --- plugins/lastfm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lastfm.py b/plugins/lastfm.py index 238d536..3562dda 100755 --- a/plugins/lastfm.py +++ b/plugins/lastfm.py @@ -42,10 +42,10 @@ def lastfm(inp, nick='', say=None, db=None, bot=None): else: return "Your nick is not a LastFM account. Try '.lastfm [user]'" - if not "track" in response["recenttracks"] or len(response["recenttracks"]["track"]) == 0: + if not "track" in response["recenttracks"] or len(response["recenttracks"]["track"]) == 0: return "No recent tracks for user \x02%s\x0F found" % user - tracks = response["recenttracks"]["track"] + tracks = response["recenttracks"]["track"] if type(tracks) == list: # if the user is listening to something, the tracks entry is a list