Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"' /