annna-message-common: limit number of pattern-matched tags - 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 a42ef23ee516f0bc77ff3965b19045e02ba138ce DIR parent 8f4093c5162880987273638dbf3fb1ec2d678da5 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 23 Oct 2023 11:48:19 +0200 annna-message-common: limit number of pattern-matched tags Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M annna-message-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -1249,7 +1249,7 @@ $0 !~ /#nospoil/ { if (!uniq[tag]++ && taglimit-- > 0) print tag } -}' | while read -r tag; +}' | head -n "$printnhashtags" | while read -r tag; do [ "${tag}" = "#expand" ] && continue