From df48e246a7debf574f7960011252272d285db3fb Mon Sep 17 00:00:00 2001 From: Casey Link Date: Sat, 5 Feb 2011 13:44:54 -0500 Subject: [PATCH] resolve nick->user when doing self compare --- modules/lastfm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lastfm.py b/modules/lastfm.py index 3812ebb..0493a32 100644 --- a/modules/lastfm.py +++ b/modules/lastfm.py @@ -135,7 +135,9 @@ def tasteometer(phenny, input): if not user2: user2 = input2 if not user2 or len(user2) == 0: - user2 = input.nick + user2 = resolve_username(input.nick) + if not user2: + user2 = input.nick try: req = urlopen("%smethod=tasteometer.compare&type1=user&type2=user&value1=%s&value2=%s" % (APIURL, urlquote(user1), urlquote(user2))) except HTTPError, e: