From ff0f6ba724748dbe340187fdd831a4d4f7f0ae5e Mon Sep 17 00:00:00 2001 From: raven Date: Wed, 22 Oct 2025 16:28:22 -0500 Subject: passwords --- client/ui.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'client/ui.go') diff --git a/client/ui.go b/client/ui.go index e5917fa..6ea9fa5 100644 --- a/client/ui.go +++ b/client/ui.go @@ -190,7 +190,13 @@ func (a *application) showWindow() { Width: tui.Fill, Height: tui.Children, Dir: tui.Right, }) a.showNickBox() - prompt.Input().Show("input") + input := prompt.Input() + priv := input.Private + if strings.HasPrefix(input.Text(), "/") { + input.Private = strings.HasPrefix(input.Text(), "/password ") + } + input.Show("input") + input.Private = priv tui.Pop() tui.Pop() -- cgit v1.2.3