index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2021-02-19 15:59:09 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-19 15:59:09 +0100 |
commit | a6fd0efa19f39b5fd20994d7c79844059e0a6c18 (patch) | |
tree | ec3fed708dd73e80b1abe49c86209327d6212cf0 /bin/ii-answer | |
parent | 1383d1ebd204a854e28e34b3ff54b26730c4dbdf (diff) |
-rwxr-xr-x | bin/ii-answer | 4 |
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 |