aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/commands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/commands.go b/ui/commands.go
index 7175a21..eb2a442 100644
--- a/ui/commands.go
+++ b/ui/commands.go
@@ -146,7 +146,7 @@ func cmdSendEvent(cmd *Command) {
}
roomID := cmd.Args[0]
eventType := mautrix.NewEventType(cmd.Args[1])
- rawContent := strings.Join(cmd.Args[2:], "")
+ rawContent := strings.Join(cmd.Args[2:], " ")
debug.Print(roomID, eventType, rawContent)
var content interface{}
@@ -188,7 +188,7 @@ func cmdSetState(cmd *Command) {
if stateKey == "-" {
stateKey = ""
}
- rawContent := strings.Join(cmd.Args[3:], "")
+ rawContent := strings.Join(cmd.Args[3:], " ")
var content interface{}
err := json.Unmarshal([]byte(rawContent), &content)