summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-07 09:07:16 +0200
committerErich Eckner <git@eckner.net>2018-05-07 09:07:16 +0200
commit1a35d29aa052b08afe74b1667688ff3622ffed5c (patch)
tree458162e91e16ddf7f55d57077e866559f5a5d37d
parenta0be2ce2bfc03dbfd403cf81236fecffa16811e5 (diff)
downloadlogbot-1a35d29aa052b08afe74b1667688ff3622ffed5c.tar.xz
convert.sh: understand ii
-rwxr-xr-xconvert.sh8
1 files changed, 7 insertions, 1 deletions
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}"' /