index : logbot | |
Archlinux32 log bot | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-05-07 09:07:16 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-07 09:07:16 +0200 |
commit | 1a35d29aa052b08afe74b1667688ff3622ffed5c (patch) | |
tree | 458162e91e16ddf7f55d57077e866559f5a5d37d | |
parent | a0be2ce2bfc03dbfd403cf81236fecffa16811e5 (diff) |
-rwxr-xr-x | convert.sh | 8 |
@@ -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}"' / |