Add #nospoil for meme expansion too. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 41d99a156e7ca5e50bf3e084dbdd0c7399cce651 | |
parent a7dc3fb90b903fbb957e7703dc77d2949136bf4f | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
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% *}: ${tag… | |
+ if [ $nospoil -eq 0 ]; | |
+ then | |
+ annna-say -s "${server}" -c "${channel}" "${tagline% *… | |
+ fi | |
else | |
# Do not recommend memes in case we got some URI expansion and… | |
# tag is less than four utf8 chars long. |