Browse Source

Trim leading and trailing whitespace and newlines

master
Robert Jacob 2 years ago
parent
commit
74c9b02840
  1. 1
      matrix/matrix.go

1
matrix/matrix.go

@ -63,6 +63,7 @@ func Listener(storage *spaceapi.Storage, homeServer, userID, token, room string)
return
}
body = strings.Trim(body, " \t\n")
switch body {
case txt.CommandHelp:
if _, err := cli.SendNotice(room, txt.HelpMessage); err != nil {

Loading…
Cancel
Save