summaryrefslogtreecommitdiff
path: root/client/command.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-01 18:04:40 -0500
committercitrons <citrons@mondecitronne.com>2025-06-01 18:04:40 -0500
commitf50a839609847169702d76560dcdc7481099d7bc (patch)
tree369ff2ca320b53a28e1d1dbea0effbf6f6388d9b /client/command.go
parentccea376f5750629c2a82b1f24251e52756876f5d (diff)
user list
Diffstat (limited to 'client/command.go')
-rw-r--r--client/command.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/command.go b/client/command.go
index 4d0d5c1..101a5aa 100644
--- a/client/command.go
+++ b/client/command.go
@@ -79,6 +79,17 @@ func (a *application) doCommand(command string, args []string, text string) {
win.(*channelWindow).leaveChannel()
}
a.currentWindow = cmdWindowLocation {}
+ case "list":
+ if !argN(0) {
+ break
+ }
+ win := a.windowCache.Get(a.currentWindow)
+ switch win.(type) {
+ case *channelWindow:
+ win.(*channelWindow).userList(func(msg userListMsg) {
+ a.cmdWindow.buf.Add(msg)
+ })
+ }
case "create":
if !argN(1) {
break