aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorPascal Abresch <neplevitan@packageloss.eu>2019-03-19 16:06:18 +0100
committerPascal Abresch <neplevitan@packageloss.eu>2019-03-19 16:06:18 +0100
commitc5bf3f894c4efad71757f0d64ec128c01cdc5805 (patch)
tree87f7a562d0c701ca75892159b5a01b77c4bdbb3a /ui
parente9b76ccfec15ecab21c10f5a0133528526e856f7 (diff)
fixed send and setstate to allow spaces
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)