aboutsummaryrefslogtreecommitdiffstats
path: root/slack/commands.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-03-10 14:02:00 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-03-29 00:00:15 +0100
commitabf7e269f0360a8b347422455b14c98994b1dbeb (patch)
tree12232de6eea3b2cd9c2ac10b902ec41630d02797 /slack/commands.py
parent5d8275080e3d325541b2a22c38356113ddaab027 (diff)
downloadwee-slack-abf7e269f0360a8b347422455b14c98994b1dbeb.tar.gz
Add connecting info to list workspaces command
Diffstat (limited to 'slack/commands.py')
-rw-r--r--slack/commands.py8
1 files changed, 8 insertions, 0 deletions
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)}")