More cmd fixes. Towels now go to the laundry. - 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 ec990a87f6d155410be6d9ab48f7534051456ac5
DIR parent 8471158cfa5562df4d5ed84d3f870ddd4c585ff7
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sun, 3 Aug 2025 22:17:13 +0200
More cmd fixes. Towels now go to the laundry.
Diffstat:
M annna-message-common | 1 +
M annna-message-gopherproject | 2 +-
M annna-message-radio | 2 +-
M annna-message-sauna | 8 +++-----
M annna-message-wikigame | 2 +-
5 files changed, 7 insertions(+), 8 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -57,6 +57,7 @@ dospoil=0
# Expand meme hashtag and show recommendations.
doexpand=0
+[ -z "${text}" ] && exit 0
case "${text}" in
*\#nospoil*)
nospoil=1
DIR diff --git a/annna-message-gopherproject b/annna-message-gopherproject
@@ -15,5 +15,5 @@ cmd="$5"
# Nothing so far for gopherproject.
-annna-message-common "${server}" "${channel}" "${user}" "${text}"
+annna-message-common "${server}" "${channel}" "${user}" "${text}" "${cmd}"
DIR diff --git a/annna-message-radio b/annna-message-radio
@@ -55,5 +55,5 @@ case "${text}" in
exit;;
esac
-annna-message-common "${server}" "${channel}" "${user}" "${text}"
+annna-message-common "${server}" "${channel}" "${user}" "${text}" "${cmd}"
DIR diff --git a/annna-message-sauna b/annna-message-sauna
@@ -16,11 +16,9 @@ cmd="$5"
[ "$user" = "${ircuser}" ] && exit
case "${cmd}" in
-JOIN) annna-say -s "${server}" -c "${channel}" "Welcome ${user}! Please grab a towel and have fun!"
+JOIN) annna-say -s "${server}" -c "${channel}" "Welcome ${user}! Please grab a towel and have fun!";;
+PART) annna-say -s "${server}" -c "${channel}" $'\001ACTION puts the towel of ${user} to the laundry.\001'
esac
-case "${text}" in
-esac
-
-annna-message-common "${server}" "${channel}" "${user}" "${text}"
+annna-message-common "${server}" "${channel}" "${user}" "${text}" "${cmd}"
DIR diff --git a/annna-message-wikigame b/annna-message-wikigame
@@ -33,5 +33,5 @@ then
annna-say -s "${server}" -c "${channel}" "${saytext}"
fi
-annna-message-common "${server}" "${channel}" "${user}" "${text}"
+annna-message-common "${server}" "${channel}" "${user}" "${text}" "${cmd}"