diff options
Diffstat (limited to 'protocol.py')
-rw-r--r-- | protocol.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocol.py b/protocol.py index fa9597a..98cebdb 100644 --- a/protocol.py +++ b/protocol.py @@ -54,6 +54,8 @@ def parse(packet, conn): r=player.get_data(data[2], t) if r is ERR_BAD: return [PACKET_NACK, "Login error"] + elif type(r) is int: + return [PACKET_ACK, r] # FIXME: Lie? else: conn.userid=int(utils.Player[conn.token]["userid"]) conn.MS_auth=True |