don't display random meme with #tag - 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 0b6e836b6fd7f435931ecc0e42db02cf10282063
(DIR) parent 867e6da80a6ad1871aa395ac47acf81dbdb152f3
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 23 Feb 2021 16:33:23 +0100
don't display random meme with #tag
the string "annna, please meme meme meme me." is often used, "#tag"
is not and collides with POSIX make urls.
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-start-services | 6 ------
1 file changed, 0 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/annna-start-services b/annna-start-services
@@ -694,12 +694,6 @@ annna_common() {
case "${text}" in
*\#nospoil*)
;;
- *\#tag[^a-zA-Z-]*)
- randomtag=1
- ;;
- *\#tag)
- randomtag=1
- ;;
*rfc[0-9]*)
rfcname="$(printf "%s\n" "${text}" | sed 's,.*\(rfc[0-9]*\).*,\1,')"
annna-say -c "${channel}" "${rfcname}: ftp://ftp.rfc-editor.org/in-notes/${rfcname}.txt"