Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/ii-answer
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-02-19 15:59:09 +0100
committerErich Eckner <git@eckner.net>2021-02-19 15:59:09 +0100
commita6fd0efa19f39b5fd20994d7c79844059e0a6c18 (patch)
treeec3fed708dd73e80b1abe49c86209327d6212cf0 /bin/ii-answer
parent1383d1ebd204a854e28e34b3ff54b26730c4dbdf (diff)
bin/ii-answer: recognize "psst" and "be quiet"
Diffstat (limited to 'bin/ii-answer')
-rwxr-xr-xbin/ii-answer4
1 files changed, 2 insertions, 2 deletions
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