summaryrefslogtreecommitdiff
path: root/client/command.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-07 19:23:22 -0500
committercitrons <citrons@mondecitronne.com>2025-06-07 19:23:22 -0500
commit1186ddcc211f33ea21d7679a3a4a80847434df94 (patch)
tree33975a28994197eec40931c2d3973fc6f37b91f3 /client/command.go
parent7d9933ccf0ac6fb9cafdd54a26a91bd9f1ed9a78 (diff)
user information command
Diffstat (limited to 'client/command.go')
-rw-r--r--client/command.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/command.go b/client/command.go
index 0db7f33..2bc7868 100644
--- a/client/command.go
+++ b/client/command.go
@@ -109,6 +109,14 @@ func (a *application) doCommand(command string, args []string, text string) {
a.sendUpdate(proto.Object {
"u", a.uid, map[string]string {"status": text},
}, cb)
+ case "who":
+ a.lookup(text, "u", func(u *proto.Object, fail *proto.Fail) {
+ if fail != nil {
+ a.cmdWindow.fail(proto.Object(*fail))
+ } else {
+ a.cmdWindow.who(u.Id)
+ }
+ })
case "create":
if a.authenticated {
a.createChannel(text)