mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-02-05 11:58:24 +00:00
Merge pull request #189 from z4zz/fix-cmd-args
fix split message arguments
This commit is contained in:
commit
6490f6756f
@ -291,7 +291,7 @@ process_message() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# split message in command and args
|
# 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
|
# everything went well
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user