From b21ac16d8034685997b2e2a1cc92d7839b42509b Mon Sep 17 00:00:00 2001 From: rebecca Date: Thu, 12 Feb 2026 22:12:54 +0000 Subject: add me command and paraphenalia (wip) --- client/command.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/command.go') diff --git a/client/command.go b/client/command.go index 108452c..26abf73 100644 --- a/client/command.go +++ b/client/command.go @@ -187,6 +187,13 @@ func (a *application) doCommand(command string, args []string, text string) { "u", a.uid, map[string]string {"status": text}, }, cb) return + case "me": + win := a.windowCache.Get(a.currentWindow) + switch win.(type) { + case *channelWindow: + fields := map[string]string {"": text, "me": "yes"} + win.(*channelWindow).SendFields(fields) + } case "who": a.lookup(text, "u", func(u *proto.Object, fail *proto.Fail) { if fail != nil { -- cgit v1.2.3