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 09:54:33 +0200
committerErich Eckner <git@eckner.net>2018-06-04 09:54:33 +0200
commit30170575fb8d6b1527bcb76607ae2fb0c515f922 (patch)
treece7759fb560727246e403befc18979c983bcb07e /bin/ii-answer
parent7f19dfd1616945c7e8ee9f41bee610d4ef1ffbe5 (diff)
bin/ii-answer: fix regex
Diffstat (limited to 'bin/ii-answer')
-rwxr-xr-xbin/ii-answer2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ii-answer b/bin/ii-answer
index 779e1e9..df7d774 100755
--- a/bin/ii-answer
+++ b/bin/ii-answer
@@ -117,7 +117,7 @@ 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]'
if grep "${regex}" "${out_file}" | \
grep -q "${sloppy_salutation}"; then
sed -i "/${regex}/d" "${out_file}"