Introduction
Introduction Statistics Contact Development Disclaimer Help
Check if wtf returned something on stdout. - annna - Annna the nice friendly bo…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 9ca2458de0ad4a970d20615f241153d52db861b3
parent 43ab0209a2443fccbbecb74812f86e3ca95c4318
Author: Annna Robert-Houdin <[email protected]>
Date: Mon, 13 Jan 2025 06:39:20 +0100
Check if wtf returned something on stdout.
Reduce spam on channel.
Diffstat:
M annna-message-common | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -899,8 +899,11 @@ case "${text}" in
;;
"${ircuser}, wtf "*)
word="$(printf "%s\n" "${text}" | cut -c 11-)"
- wtfword="$(wtf "${word}")"
- annna-say -s "${server}" -c "${channel}" "${user}, ${wtfword}"
+ wtfword="$(wtf "${word}" 2>/dev/null)"
+ if [ -n "${wtfword}" ];
+ then
+ annna-say -s "${server}" -c "${channel}" "${user}, ${wtfword}"
+ fi
;;
"${ircuser}, please give me a good band name.")
bandname="$(bandname-gen | shuf | head -n 1)"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.