#! /bin/sh

cat - | egrep '<|-!-| * ' | uniq | sed -e s/'\([0-9][0-9]\):\([0-9][0-9]\)'/'\[\1:\2\]'/g -e s/'<[\@,+, ]\([^>]*\)>'/'\<\1\>'/g -e s/'-!- \([^ ]*\) changed the topic of [^ ]'/'*** \1 changes topic to '/g -e s/'-!- Topic for [^ ]* '/'*** * changes topic to: '/g -e s/'-!- \([^ ]*\) \[\([^ ]*\)\] has joined'/'*** \1 (\2) has joined'/g -e s/'-!- \([^ ]*\) \[\([^ ]*\)\] has quit IRC \[\([^'\]']*\)\]'/'*** \1 has left IRC (\3)'/g | grep -v '\-\!\-'
