From a6fd0efa19f39b5fd20994d7c79844059e0a6c18 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 19 Feb 2021 15:59:09 +0100 Subject: bin/ii-answer: recognize "psst" and "be quiet" --- bin/ii-answer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ii-answer') diff --git a/bin/ii-answer b/bin/ii-answer index 432fc6e..b0f8f11 100755 --- a/bin/ii-answer +++ b/bin/ii-answer @@ -201,11 +201,11 @@ find "${irc_dir}" \ fi if [ -z "${channel%%#*}" ]; then # answer "Shut up!" - regex='^\S\+ <\S\+> \(.* \)\?[Ss][Hh][Uu][Tt] \?[Uu][Pp]' + regex='^\S\+ <\S\+> \(.* \)\?([Ss][Hh][Uu][Tt] \?[Uu][Pp]\|pss\+t\|[Bb]e \(.* \)\?quiet' if grep "${regex}" "${out_file}" | \ grep -q "${sloppy_salutation}"; then sed -i "/${regex}/d" "${out_file}" - printf 'Sorry, I will do.\n' | \ + printf 'Sorry, I will be quiet.\n' | \ irc_say "${channel}" 'copy' printf '%s\n' "$(( $(date '+%s') + 3600 -- cgit v1.2.3