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:
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