Fix annna-cmd. - annna - Annna the nice friendly bot.
 (HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
       ---
 (DIR) commit b68e6a303205a0c529a2a950ecdc7ef12163866f
 (DIR) parent cf2f72804b667881fcf947e021bf5a10af7cd474
 (HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Wed, 27 Dec 2023 10:42:06 +0100
       
       Fix annna-cmd.
       
       Diffstat:
         M annna-say                           |      15 ++++++++++++++-
       
       1 file changed, 14 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/annna-say b/annna-say
       @@ -63,7 +63,20 @@ do
                ircpath="${ircbase}/${cserver}/${cname}"
                if [ -e "$ircpath/in" ];
                then
       -                printf "%s\n" "$@" | fold -w 250 -s > "${ircpath}/${outfile}"
       +                case "${outfile}" in
       +                "in")
       +                        printf "%s\n" "$@" | fold -w 250 -s > "${ircpath}/${outfile}"
       +                        ;;
       +                "out")
       +                        printf "%s\n" "$@" \
       +                        | fold -w 250 -s \
       +                        | while read -r line;
       +                        do
       +                                printf "%s <%s> %s\n" "$(date +s)" "annna-cmd" "$line" \
       +                                         > "${ircpath}/${outfile}"
       +                        done
       +                        ;;
       +                esac
                else
                        ircpath="${ircbase}/${cserver}"
                        # Might be a user. Do not bother with outfile, he/she is not in our control.