From 9cc3e650e64bba50868b7ae53623c463998150c7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 4 Jun 2018 10:09:24 +0200 Subject: bin/ii-answer: first tell irc that we comply and then shut up. --- bin/ii-answer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2