| Add timeout to solve annna-say bugs in case ii hangs. - annna - Annna the nice … | |
| git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| --- | |
| commit dcf1e60c760a5906e0375e5606e51cbe5aa189a9 | |
| parent 16db38e8f84fcd849b9cd4a47908d2f660933759 | |
| Author: Annna Robert-Houdin <[email protected]> | |
| Date: Tue, 14 Oct 2025 21:30:56 +0200 | |
| Add timeout to solve annna-say bugs in case ii hangs. | |
| Diffstat: | |
| M annna-say | 8 +++++++- | |
| 1 file changed, 7 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/annna-say b/annna-say | |
| @@ -54,7 +54,13 @@ do | |
| if [ -e "$ircpath/in" ]; | |
| then | |
| case "${outfile}" in | |
| - "in") printf "%s\n" "$@" | fold -w 250 -s > "${ircpath}/${outf… | |
| + "in") | |
| + # Timeout, to solve ii hangs. | |
| + printf "%s\n" "$@" \ | |
| + | fold -w 250 -s \ | |
| + | timeout 5 cat \ | |
| + > "${ircpath}/${outfile}" | |
| + ;; | |
| "out") | |
| export IRC_PASS= | |
| export IRC_CMD="PRIVMSG" |