From 1186ddcc211f33ea21d7679a3a4a80847434df94 Mon Sep 17 00:00:00 2001 From: citrons Date: Sat, 7 Jun 2025 19:23:22 -0500 Subject: user information command --- client/channel_window.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'client/channel_window.go') diff --git a/client/channel_window.go b/client/channel_window.go index ff9484a..9a78b34 100644 --- a/client/channel_window.go +++ b/client/channel_window.go @@ -264,9 +264,16 @@ func (m channelMsg) showName(bg int32) { } else { nameStyle.Bold = true } - tui.Push(m.Id() + ".name", tui.Box { + mouse := tui.Push(m.Id() + ".name", tui.Box { Width: tui.TextSize, Height: 1, NoWrap: true, }) + switch { + case mouse.Button == 0 && mouse.Pressed: + fallthrough + case tui.MenuOption("who?"): + globalApp.cmdWindow.who(m.Fields["f"]) + globalApp.redraw = true + } tui.Text(m.window.username(m.Fields["f"]), &nameStyle) tui.Pop() } -- cgit v1.2.3