Return firstname in getprofile if it's set

This commit is contained in:
polaris
2014-04-08 16:24:52 -04:00
parent 63cdaf3666
commit 9a90d70732

View File

@@ -202,6 +202,10 @@ class PlayerSession(LineReceiver):
msg_d.append(('sig', utils.generate_random_hex_str(32)))
msg_d.append(('uniquenick', profile['uniquenick']))
msg_d.append(('pid', profile['pid']))
if profile['firstname'] != "":
msg_d.append(('firstname', profile['firstname'])) # Wii gets a firstname
msg_d.append(('lastname', profile['lastname']))
msg_d.append(('lon', profile['lon']))
msg_d.append(('lat', profile['lat']))