#!/usr/bin/perl # Time-stamp: "2005-08-19 01:33:59 ADT" # desc{convert ircII log format into decent HTML} # ------------------------------------------------------------ # This package is Copyright 1996- by Sean M. Burke, sburke@cpan.org # # irclog2html # # Synopsis: # irclog2html is a Perl script which converts ircII log format into # acceptable HTML files. # # Author: # Sean M. Burke, sburke@cpan.org # # Requirements, Bugs, and Caveats: # irc bolding, italics, and underline characters are ignored and # stripped out. This should be corrected in a future version. # # Availability & Copying: # # irclog2html is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2, or (at your option) any # later version. # # irclog2html is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # To see a copy of the GNU General Public License, see # http://www.ling.nwu.edu/~sburke/gnu_release.html, or write to the # Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # ------------------------------------------------------------ print "irc session\n"; print ""; print "\n"; while(<>) { s/[\x00-\x1f]+//g; # kill all control characters. s/\&/&/g; s/\/>/g; print "
$_\n"; } print"\n\n";