home · contact · privacy
Fixed switching to player mode before login if other user logged in.
[plomrogue2-experiments] / new2 / plomrogue / commands.py
index dc65375417cf46f2e7ea667e9529de1d3e706c4b..97001e0a313f294854eeed5165944418ad1e44e6 100644 (file)
@@ -26,7 +26,7 @@ def cmd_LOGIN(game, nick, connection_id):
         t.position = YX(game.map.size.y // 2, game.map.size.x // 2)
         game.things += [t]  # TODO refactor into Thing.__init__?
         game.sessions[connection_id] = t.id_
-        game.io.send('LOGIN_OK')
+        game.io.send('LOGIN_OK', connection_id)
         t.nickname = nick
         game.io.send('CHAT ' + quote(t.nickname + ' entered the map.'))
         game.io.send('PLAYER_ID %s' % t.id_, connection_id)