Reorder the karma bitch correction to be near the karma handling. - 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 ce284b2b39da5d0f56bfe3f5920406f33f44c68c
DIR parent 56c4f059380893dea5eb23f1bb4133ac099c51d9
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 19 Sep 2022 16:36:24 +0200
Reorder the karma bitch correction to be near the karma handling.
Diffstat:
M annna-message-common | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -235,9 +235,6 @@ case "${text}" in
dontcaresay="$(shuf -n 1 ${idontcaredb})"
annna-say -s "${server}" -c "${channel}" "${user}, ${dontcaresay}"
;;
-*"arma is a bitch"*)
- annna-say -s "${server}" -c "${channel}" "${user}, I object! Karma is a nice girl!"
- ;;
"${ircuser}, how can I phlog on bitreich?")
annna-say -s "${server}" -c "${channel}" "${user}, please read: gopher://bitreich.org/0/usr/20h/phlog/2017-08-26T20-04-02-482296.md and gopher://bitreich.org/0/usr/20h/phlog/2017-08-26T20-27-40-281825.md"
;;
@@ -1143,6 +1140,9 @@ case "${text}" in
shametext="$(printf "%s\n" "${text}" | sed 's,.* \(.*-shaming\).*,\1,')"
shame "${shametext}"
;;
+*"arma is a bitch"*)
+ annna-say -s "${server}" -c "${channel}" "${user}, I object! Karma is a nice girl!"
+ ;;
*++|*--|*-=?|*+=?|*+=-?|*-=-?)
karmatext="$(karma "${text}")"
if [ -n "$karmatext" ];