summaryrefslogtreecommitdiff
path: root/protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'protocol.py')
-rw-r--r--protocol.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocol.py b/protocol.py
index f7c17e7..25633ee 100644
--- a/protocol.py
+++ b/protocol.py
@@ -54,6 +54,8 @@ def parse(packet, conn):
if r is ERR_BAD:
return [PACKET_NACK, "Login error"]
else:
+ conn.userid=int(utils.Player[conn.token]["userid"])
+ utils.stdout("Login successful for UID %d" % conn.userid)
return [PACKET_ACK, r]
elif data[1] == "register":
r=player.register(data[2], t)