home · contact · privacy
Only send server intro message to logged-in user.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 27 Dec 2020 12:34:51 +0000 (13:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 27 Dec 2020 12:34:51 +0000 (13:34 +0100)
plomrogue/game.py

index d51c832fd36dc2e9d353969bee079f751c62ce40..e7bc7301e0eea7782ac9cf444e8bb274f98cdef0 100755 (executable)
@@ -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]: