index : logbot | |
Archlinux32 log bot | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2021-05-24 00:03:12 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-05-24 00:03:12 +0200 |
commit | 74d27e041744099eaff920a4f053d49a9e490a00 (patch) | |
tree | 528e818a3cc7d505699a2a2298b930b1e108e083 | |
parent | 12826d5a59e415c15db428625057a69975e55747 (diff) |
-rwxr-xr-x | convert.sh | 16 |
@@ -1,6 +1,6 @@ #!/bin/bash -dirs='/srv/arch-mirror/arch/arch/archlinux32/irc-logs/' +dirs='/home/titus/irc-logs/' declare -A colors @@ -55,36 +55,36 @@ elif [ "$2" = 'html' ]; then sed -n ' /^<span style="font-size: smaller">/{ s@^<span style="font-size: smaller">(\([^)]\+\))</span><b> @\1 @ - /entered the room\.<\/b><br\/>$/{ - s@^\(\S\+\) \(.*\S\) \[.*] entered the room\.<\/b><br\/>$@\1 --> | \2 has joined '"${channel}"' @ + /entered the room\.<\/b><br>$/{ + s@^\(\S\+\) \(.*\S\) \[.*] entered the room\.<\/b><br>$@\1 --> | \2 has joined '"${channel}"' @ p d } / left the room /{ - s@^\(\S\+\) \(.*\S\) left the room (quit: \(.*\))\.</b><br/>$@\1 <-- | \2 has quit (\3)@ + s@^\(\S\+\) \(.*\S\) left the room (\(quit: \)\?\(.*\))\.</b><br>$@\1 <-- | \2 has quit (\4)@ p d } / left the room\./{ - s@^\(\S\+\) \(.*\S\) left the room\.</b><br/>$@\1 <-- | \2 has quit (Quit: \2)@ + s@^\(\S\+\) \(.*\S\) left the room\.</b><br>$@\1 <-- | \2 has quit (Quit: \2)@ p d } / is now known as /{ - s@^\(\S\+\) \(.*\S\)\s*</b><br/>$@\1 -- | \2@ + s@^\(\S\+\) \(.*\S\)\s*</b><br>$@\1 -- | \2@ p d } d } \@</span> <b>\*\*\*\S\+</b></span> @{ - s@^<span style="color: #[0-9A-F]\{6\}"><span style="font-size: smaller">(\([^)]\+\))</span> <b>\*\*\*\(\S*\)</b></span> \(.*\)<br/>$@\1 * | \2 \3@ + s@^<span style="color: #[0-9A-F]\{6\}"><span style="font-size: smaller">(\([^)]\+\))</span> <b>\*\*\*\(\S*\)</b></span> \(.*\)<br>$@\1 * | \2 \3@ p d } /<span style="font-size: smaller">/{ s@^<span style="color: #[0-9A-F]\{6\}"><span style="font-size: smaller">(\([^)]\+\))</span> <b>\(\S\+\):</b></span> @\1 \2 | @ - s@<br/>$@@ + s@<br>$@@ p d } |