Fix the apples? - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 5fa8db85fffb3aee8841e0294a92919191622878 DIR parent 67b4ba5ac6018b56db51340b644650cc94944457 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Fri, 27 Aug 2021 18:12:46 +0200 Fix the apples? Diffstat: M annna-message-common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -365,9 +365,9 @@ case "${text}" in ;; "${botname}, what can I cook with "*) ingredients="$(printf "%s\n" "${text}" | cut -c 29- | sed 's,\t, ,g')" - case "$word" in + case "$ingredients" in *\?) - word="$(printf "%s\n" "${word}" | cut -c -"$(($(expr length "${word}") - 1))")" + ingredients="$(printf "%s\n" "${ingredients}" | cut -c -"$(($(expr length "${ingredients}") - 1))")" ;; esac