From: Christian Heller Date: Sun, 8 Nov 2020 01:28:58 +0000 (+0100) Subject: Announce players leaving the map. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/process?a=commitdiff_plain;h=0f06e733808a21d58baf655d2d3443374140cfb2;p=plomrogue2-experiments Announce players leaving the map. --- diff --git a/new2/plomrogue/game.py b/new2/plomrogue/game.py index 0c09b01..bbc2393 100755 --- a/new2/plomrogue/game.py +++ b/new2/plomrogue/game.py @@ -112,6 +112,8 @@ class Game(GameBase): break if not connection_id_found: t = self.get_thing(self.sessions[connection_id], create_unfound=False) + if hasattr(t, 'nickname'): + self.io.send('CHAT ' + quote(t.nickname + ' left the map.')) self.things.remove(t) to_delete += [connection_id] for connection_id in to_delete: