Add #nospoil for meme expansion too. - 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 41d99a156e7ca5e50bf3e084dbdd0c7399cce651
DIR parent a7dc3fb90b903fbb957e7703dc77d2949136bf4f
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 8 Aug 2022 20:01:03 +0200
Add #nospoil for meme expansion too.
Diffstat:
M annna-message-common | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -1091,7 +1091,10 @@ $0 !~ /#nospoil/ {
do
if tagline="$(grep "${tag} " "${hashtagfile}")";
then
- annna-say -s "${server}" -c "${channel}" "${tagline% *}: ${tagline#* }"
+ if [ $nospoil -eq 0 ];
+ then
+ annna-say -s "${server}" -c "${channel}" "${tagline% *}: ${tagline#* }"
+ fi
else
# Do not recommend memes in case we got some URI expansion and if unknown
# tag is less than four utf8 chars long.