From abf7e269f0360a8b347422455b14c98994b1dbeb Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 10 Mar 2024 14:02:00 +0100 Subject: Add connecting info to list workspaces command --- slack/commands.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'slack/commands.py') diff --git a/slack/commands.py b/slack/commands.py index 6a3e2ac..8689157 100644 --- a/slack/commands.py +++ b/slack/commands.py @@ -150,6 +150,14 @@ def display_workspace(workspace: SlackWorkspace, detailed_list: bool): f", nick: {workspace.my_user.nick.format()}" f", {num_channels} channel(s), {num_pvs} pv", ) + elif workspace.is_connecting: + weechat.prnt( + "", + f" {with_color('chat_server', workspace.name)} " + f"{with_color('chat_delimiters', '[')}" + f"connecting" + f"{with_color('chat_delimiters', ']')}", + ) else: weechat.prnt("", f" {with_color('chat_server', workspace.name)}") -- cgit