summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"