-#!/usr/bin/perl
+#!/usr/bin/perl -w
# irclog2html.pl Version 1.5 - 11th May 2000
# Copyright (C) 2000, Jeffrey W. Waugh
my $rgbmin = 240;
my $a = 0.95; # tune these for the starting and ending concentrations of R,G,B
- my $b = 0.5;
+ my $c = 0.5;
- my $rgb = [ [$a,$b,$b], [$b,$a,$b], [$b,$b,$a], [$a,$a,$b], [$a,$b,$a], [$b,$a,$a] ];
+ my $rgb = [ [$a,$c,$c], [$c,$a,$c], [$c,$c,$a], [$a,$a,$c], [$a,$c,$a], [$c,$a,$a] ];
my $n = $i % @$rgb;
my $m = $rgbmin + ($rgbmax - $rgbmin) * ($ncolours - $i) / $ncolours;
if (!$line eq "") {
+
# parse out the time
- if ($line =~ s/^([0-9:\.]*) (.*)$/\2/) {
+ if ($line =~ s/^([0-9:\.]*) (.*)$/$2/) {
$time = $1;
} else {
$time = "";
$text = $line;
$text =~ s/^<\;.*?>\; (.*)$/$1/;
+ $text =~ s/^ .*/<\;PROTECTED>\;/g;
$text =~ s/ / \; \;/g;
$htmlcolour = $colour_nick{$nick};