summaryrefslogtreecommitdiff
path: root/client/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/command.go')
-rw-r--r--client/command.go7
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 {