From: Christian Heller Date: Sun, 27 Dec 2020 12:34:51 +0000 (+0100) Subject: Only send server intro message to logged-in user. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards?a=commitdiff_plain;h=cef4c371e71b6d5f4598cda0faed55bd03c0dae1;p=plomrogue2 Only send server intro message to logged-in user. --- diff --git a/plomrogue/game.py b/plomrogue/game.py index d51c832..e7bc730 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -365,7 +365,7 @@ class Game(GameBase): self.io.send('PLAYER_ID %s' % t.id_, connection_id) self.io.send('LOGIN_OK', connection_id) for msg in self.intro_messages: - self.io.send('CHAT ' + quote(msg)) + self.io.send('CHAT ' + quote(msg), connection_id) self.io.send('CHAT ' + quote(t.name + ' entered the map.')) for s in [s for s in self.things if s.type_ == 'SpawnPoint' and s.name == t.name]: