Merge pull request #189 from z4zz/fix-cmd-args

fix split message arguments
This commit is contained in:
Kay Marquardt 2022-01-19 22:17:37 +01:00 committed by GitHub
commit 6490f6756f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ process_message() {
fi
# split message in command and args
[[ "${MESSAGE[0]}" == "/"* ]] && read -r CMD <<<"${MESSAGE[0]}" && CMD[0]="${CMD[0]%%@*}"
[[ "${MESSAGE[0]}" == "/"* ]] && read -ra CMD <<<"${MESSAGE[0]}" && CMD[0]="${CMD[0]%%@*}"
# everything went well
return 0
}