Browse Source

Trim leading and trailing whitespace and newlines

master
Robert Jacob 9 months ago
parent
commit
74c9b02840
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      matrix/matrix.go

+ 1
- 0
matrix/matrix.go View File

@ -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