Add case against news and channel flood in phlog index. - 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 bcfbc72a3484109d65e8813d3fafa381dd3872c7
(DIR) parent 7d52d331bf02f2b674bb6a697c71c68987826e34
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Wed, 13 May 2020 19:49:44 +0200
Add case against news and channel flood in phlog index.
Diffstat:
M phlog-index | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/phlog-index b/phlog-index
@@ -103,10 +103,16 @@ then
[ -z "$title" ] && continue
gphpth="$(printf "$gopherbase" "$user" "$fname")"
- annna-say -c "$ircchans" \
- "$(printf "%s – »%s« by %s gopher://bitreich.org/0%s" \
- "$tstamp" "$title" "$user" "$gphpth")"
- # Case against excess flood.
+
+ for chan in $ircchans;
+ do
+ annna-say -c "$chan" \
+ "$(printf "%s – »%s« by %s gopher://bitreich.org/0%s" \
+ "$tstamp" "$title" "$user" "$gphpth")"
+ # Case against channel flood.
+ sleep 1
+ done
+ # Case against news flood.
sleep 2
done
fi