aboutsummaryrefslogtreecommitdiff
path: root/ui/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/commands.go')
-rw-r--r--ui/commands.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/commands.go b/ui/commands.go
index 12a99de..39b1a46 100644
--- a/ui/commands.go
+++ b/ui/commands.go
@@ -129,6 +129,15 @@ func cmdJoin(cmd *Command) {
}
}
+func cmdMSendEvent(cmd *Command) {
+ if len(cmd.Args) < 2 {
+ cmd.Reply("Usage: /msend <event type> <content>")
+ return
+ }
+ cmd.Args = append([]string{cmd.Room.MxRoom().ID},cmd.Args...)
+ cmdSendEvent(cmd)
+}
+
func cmdSendEvent(cmd *Command) {
debug.Print(cmd.Command, cmd.Args, len(cmd.Args))
if len(cmd.Args) < 3 {