X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new2%2Fplomrogue%2Fcommands.py;h=97001e0a313f294854eeed5165944418ad1e44e6;hb=1d9e41e7df05336a6688382c9374c547979cf11e;hp=dc65375417cf46f2e7ea667e9529de1d3e706c4b;hpb=804c0812954c9ab11bffaef5fee644ee4350b2a6;p=plomrogue2-experiments diff --git a/new2/plomrogue/commands.py b/new2/plomrogue/commands.py index dc65375..97001e0 100644 --- a/new2/plomrogue/commands.py +++ b/new2/plomrogue/commands.py @@ -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)