From 0c1e901179d2bd57bf06e4be47f29e9f900d65c8 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 6 Aug 2025 19:05:55 +0200 Subject: [PATCH] Minor refactoring. --- ircplom/client_tui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index fe49e21..13a0dc6 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -125,7 +125,7 @@ class ClientTui(BaseTui): 'Create Client and pass it via NewClientEvent.' split = host_port.split(':', maxsplit=1) hostname = split[0] - if hostname in [win.client_id for win in self._all_client_wins]: + if hostname in self.clients_data: return f'already set up connection to {hostname}' port = -1 if len(split) > 1: -- 2.30.2