summaryrefslogtreecommitdiff
path: root/client/channel_window.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/channel_window.go')
-rw-r--r--client/channel_window.go9
1 files changed, 8 insertions, 1 deletions
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()
}