summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-28 09:21:53 +0100
committerErich Eckner <git@eckner.net>2019-02-28 09:21:53 +0100
commitf9bda581e02fca45672897feb74c200f102b0ca9 (patch)
tree86e0f1795d24ad7393356142628aa52c9cd1d199
parent1ffaad8b51547b5d6472c3bdb86c2b957c5db013 (diff)
downloadlogbot-f9bda581e02fca45672897feb74c200f102b0ca9.tar.xz
convert.sh: understand ii left messages
-rwxr-xr-xconvert.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/convert.sh b/convert.sh
index 1269e97..6900730 100755
--- a/convert.sh
+++ b/convert.sh
@@ -35,6 +35,7 @@ create_color() {
if [ "$2" = 'ii' ]; then
sed '
s/^\([0-9]\+\) -!- \(.* has joined \S\+$\)/\1 --> | \2 /
+ s/^\([0-9]\+\) -!- \(.* has left \S\+$\)/\1 <-- | \2 /
s/^\([0-9]\+\) <\(\S\+\)> /\1 \2 | /
s/^/@/
'