From 91b37f0937e62224618d9d5ee19c428dae17c835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 29 Sep 2018 07:34:50 +0300 Subject: [PATCH] Ignore messy topic diffs --- speak-logs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/speak-logs.sh b/speak-logs.sh index 5595e23..29d6368 100644 --- a/speak-logs.sh +++ b/speak-logs.sh @@ -16,6 +16,8 @@ sed -E '/^(..:..) -!- ([^ ]+).*has left \#[^ ]* \[[^]]*\]$/d' | sed -E 's,^(..:..) -!- ([^ ]+) is now known as ([^ ]+)$,\1 \2 became \3,' | # Speak day changes specially sed -E 's,^ --- (Day changed .*)$,\1,' | +# Remove minicat topic diffs +sed -E '/^(..:..) \<\;.minicat\>\; .?\(diff\).*/d' | # Speak timestaps and nicks specially sed -E 's,^(..:..) \<\;.?([^& ]+)\>\;,\1 \2,' | sed -E 's,^(..:..) \* ([^ ]+),\1 action \2,' | @@ -31,8 +33,8 @@ sed -E 's,(https?|gopher)://[^ )>]+, \1 URL,g' | # Handle some common emoticons sed -E 's,\^_\^,happy eyes emoticon,g' | sed -E 's,\\o\/,arms in air emoticon,g' | -sed -E 's,o\/,arm in air emoticon,g' | -sed -E 's,\\o,arm in air emoticon,g' | +sed -E 's,\bo\/,arm in air emoticon,g' | +sed -E 's,\\o\b,arm in air emoticon,g' | sed -E 's,\:\),smiling emoticon,g' | sed -E 's,\(\:,reversed smiling emoticon,g' | sed -E 's,\:\(,sad emoticon,g' |