annna-message-common: fix user addressing with cached meme filters - 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 9b65348f7c442d7dc1b4b486ccc200f65c60fc0f
(DIR) parent 18114d7262d99ee25320b870d1b77f9dd5cc5153
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 22 Feb 2023 20:32:09 +0100
annna-message-common: fix user addressing with cached meme filters
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-message-common | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -1002,6 +1002,11 @@ case "${text}" in
esac
esac
+ if [ "${recipient}" != "${text}" ];
+ then
+ user="${recipient}"
+ fi
+
# Cleanup if outpath file is empty.
[ -f "${outpath}" -a ! -s "${outpath}" ] && rm "${outpath}"
@@ -1036,11 +1041,6 @@ case "${text}" in
;;
esac
- if [ "${recipient}" != "${text}" ];
- then
- user="${recipient}"
- fi
-
if [ -s "${outpath}" ];
then
annna-say -s "${server}" -c "${channel}" "${user}, gophers://bitreich.org/9/memecache/filter/${outfile}"
@@ -1169,7 +1169,7 @@ $0 !~ /#nospoil/ {
}' | while read -r tag;
do
[ "${tag}" == "#expand" ] && continue
-
+
origtag="${tag}"
pointer=0
revpointer=0