From 1a35d29aa052b08afe74b1667688ff3622ffed5c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 7 May 2018 09:07:16 +0200 Subject: convert.sh: understand ii --- convert.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/convert.sh b/convert.sh index 6e37c7e..6d0482c 100755 --- a/convert.sh +++ b/convert.sh @@ -32,7 +32,13 @@ create_color() { # "time * | nick action" # we reformat other formats accordingly -if [ "$2" = 'tyzoid' ]; then +if [ "$2" = 'ii' ]; then + sed ' + s/^\([0-9]\+\) -!- \(.* has joined \S\+$\)/\1 --> | \2 / + s/^\([0-9]\+\) <\(\S\+\)> /\1 \2 | / + s/^/@/ + ' +elif [ "$2" = 'tyzoid' ]; then channel="$3" sed ' s/^\[\([^]]\+\)] \*\*\* Joins: \(\S\+\) .*$/\1 --> | \2 has joined '"${channel}"' / -- cgit v1.2.3