From 30170575fb8d6b1527bcb76607ae2fb0c515f922 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 4 Jun 2018 09:54:33 +0200 Subject: bin/ii-answer: fix regex --- bin/ii-answer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ii-answer') 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}" -- cgit v1.2.3