resolve nick->user when doing self compare
parent
67e548366b
commit
df48e246a7
|
@ -135,6 +135,8 @@ def tasteometer(phenny, input):
|
|||
if not user2:
|
||||
user2 = input2
|
||||
if not user2 or len(user2) == 0:
|
||||
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)))
|
||||
|
|
Loading…
Reference in New Issue