$i++;
if ($lnum ne 'max' && $i > $lnum) { last; }
local($date,$name,$email,$comment,$color) = split(/<>/, $line);
+ # \8e©\93®\83\8a\83\93\83NON\82È\82ç\82ÎURL\95¶\8e\9a\97ñ\92u\82«\8a·\82¦$
+ if ( $CONF{'autolink'} ) {
+ # URL Auto Link
+ $comment =~ s/(s?https?:\/\/[-_.!~*'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)/<a href="\1" target="_blank">\1<\/a>/g;
+ }
$ret .= $query->hr;
if ($weight eq 'light') {
$ret .= "$name \81\84 $comment ";
print LOG $query->start_html(-lang => $CONF{'lang'},
-encoding => $CONF{'charset'},
-head => meta({-http_equiv => 'Content-Type',
- -content => 'text/html'}),
+ -content => 'text/html; charset=' . $CONF{'charset'}}),
-title=>$title,
-style=>{-src=>"../$CONF{'chatstyle'}"});