Trim leading and trailing whitespace and newlines
continuous-integration/drone/push Build is passing Details

pull/2/head
Robert Jacob 2020-06-27 12:53:57 +02:00
parent 40db78865d
commit 74c9b02840
1 changed files with 1 additions and 0 deletions

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 {