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 39b1a46..7175a21 100644
--- a/ui/commands.go
+++ b/ui/commands.go
@@ -167,6 +167,15 @@ func cmdSendEvent(cmd *Command) {
}
}
+func cmdMSetState(cmd *Command) {
+ if len(cmd.Args) < 2 {
+ cmd.Reply("Usage: /msetstate <event type> <state key> <content>")
+ return
+ }
+ cmd.Args = append([]string{cmd.Room.MxRoom().ID},cmd.Args...)
+ cmdSetState(cmd)
+}
+
func cmdSetState(cmd *Command) {
if len(cmd.Args) < 4 {
cmd.Reply("Usage: /setstate <room id> <event type> <state key/`-`> <content>")