Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix annna-cmd. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit b68e6a303205a0c529a2a950ecdc7ef12163866f
parent cf2f72804b667881fcf947e021bf5a10af7cd474
Author: Annna Robert-Houdin <[email protected]>
Date: Wed, 27 Dec 2023 10:42:06 +0100
Fix annna-cmd.
Diffstat:
M annna-say | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
---
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}/${ou…
+ ;;
+ "out")
+ printf "%s\n" "$@" \
+ | fold -w 250 -s \
+ | while read -r line;
+ do
+ printf "%s <%s> %s\n" "$(date +s)" "annna-cmd"…
+ > "${ircpath}/${outfile}"
+ done
+ ;;
+ esac
else
ircpath="${ircbase}/${cserver}"
# Might be a user. Do not bother with outfile, he/she is not i…
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.