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>2018-06-04 10:09:24 +0200
committerErich Eckner <git@eckner.net>2018-06-04 10:09:24 +0200
commit9cc3e650e64bba50868b7ae53623c463998150c7 (patch)
tree7705e2fd3715891ac076f6cbc72a773bc1c7ed38 /bin/ii-answer
parent7b1488a0d223ba77248fafd124d46b7f708881fc (diff)
bin/ii-answer: first tell irc that we comply and then shut up.
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 df7d774..ec234f1 100755
--- a/bin/ii-answer
+++ b/bin/ii-answer
@@ -121,11 +121,11 @@ find "${irc_dir}" \
if grep "${regex}" "${out_file}" | \
grep -q "${sloppy_salutation}"; then
sed -i "/${regex}/d" "${out_file}"
+ printf 'Sorry, I will do.\n' | \
+ irc_say "${channel}" 'copy'
printf '%s\n' "$((
$(date '+%s') + 3600
))" > "${work_dir}/irc-shut-up"
- printf 'Sorry, I will do.\n' | \
- irc_say "${channel}" 'copy'
fi
fi
done