Exit 0, if annna is annna. - 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 9cb95df121576a81f2b3f385f4a2b1b46a19a094 DIR parent 7b5484683bf83004c1c2dd2678a04178961b6058 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sat, 11 Dec 2021 16:59:16 +0100 Exit 0, if annna is annna. Diffstat: M annna-message-common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -32,7 +32,7 @@ regeximatch() { printf "%s %s %s %s\n" "${0##*/}" "${channel}" "${user}" "${text}" -[ "$user" = "${botname}" ] && exit +[ "$user" = "${botname}" ] && exit 0 uri="$(printf "%s\n" "${text}" \ | sed -n '/.*\(https\{0,1\}:\/\/[^ ]\{1,\}\).*/s//\1/p')" @@ -991,3 +991,4 @@ case "${text}" in annna-say -c "${channel}" "Thanks! Your request has been fulfilled with the quickness! :)" ;; esac +