diff options
| author | rebecca <ubq323@ubq323.website> | 2026-02-12 22:12:54 +0000 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-02-12 22:12:54 +0000 |
| commit | b21ac16d8034685997b2e2a1cc92d7839b42509b (patch) | |
| tree | 00a05067670cad5c8dbd5494b9304fc8540062cf /client/command.go | |
| parent | 2ddec8b29c46f57481463abd9b56a39185986918 (diff) | |
add me command and paraphenalia (wip)
Diffstat (limited to 'client/command.go')
| -rw-r--r-- | client/command.go | 7 |
1 files changed, 7 insertions, 0 deletions
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 { |
