Add unzombie and unghost commands. - 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 505d91d6c88c39b143440e2896308fa10e97a382 DIR parent 8e5e25f82d7ff9ea5a1ccb2a3d1e0bd30af5a5bd HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 3 Nov 2024 08:21:09 +0100 Add unzombie and unghost commands. Diffstat: M annna-message-common | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-message-common b/annna-message-common @@ -629,6 +629,11 @@ case "${text}" in suri="$(printf "%s\n" "${word}" | zombie -e | bitreich-speak)" annna-say -s "${server}" -c "${channel}" "${suri}" ;; +"${ircuser}, please unzombie "*) + word="$(printf "%s\n" "${text}" | cut -c 24- | sed 's,\t, ,g')" + suri="$(printf "%s\n" "${word}" | zombie -d)" + annna-say -s "${server}" -c "${channel}" "${suri}" + ;; "${ircuser}, please zombie "*) word="$(printf "%s\n" "${text}" | cut -c 22- | sed 's,\t, ,g')" suri="$(printf "%s\n" "${word}" | zombie -e)" @@ -639,6 +644,11 @@ case "${text}" in suri="$(printf "%s\n" "${word}" | ghost -e | bitreich-speak)" annna-say -s "${server}" -c "${channel}" "${suri}" ;; +"${ircuser}, please unghost "*) + word="$(printf "%s\n" "${text}" | cut -c 23- | sed 's,\t, ,g')" + suri="$(printf "%s\n" "${word}" | ghost -d)" + annna-say -s "${server}" -c "${channel}" "${suri}" + ;; "${ircuser}, please ghost "*) word="$(printf "%s\n" "${text}" | cut -c 21- | sed 's,\t, ,g')" suri="$(printf "%s\n" "${word}" | ghost -e)"