ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/Protocol.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/Protocol.pm (file contents):
Revision 1.101 by root, Thu Apr 12 07:53:31 2007 UTC vs.
Revision 1.102 by root, Wed Apr 18 18:16:16 2007 UTC

656 656
657 my $fg = $color[$color % @color]; 657 my $fg = $color[$color % @color];
658 658
659 $self->logprint ("info: ", $text); 659 $self->logprint ("info: ", $text);
660 660
661 # try to create single paragraphs of multiple lines sent by the server 661 ## try to create single paragraphs of multiple lines sent by the server
662 # no longer neecssary with TRT servers
662 $text =~ s/(?<=\S)\n(?=\w)/ /g; 663 #$text =~ s/(?<=\S)\n(?=\w)/ /g;
663 664
664 $text = CFPlus::asxml $text; 665 $text = CFPlus::asxml $text;
665 $text =~ s/\[b\](.*?)\[\/b\]/<b>\1<\/b>/g; 666 $text =~ s/\[b\](.*?)\[\/b\]/<b>\1<\/b>/g;
666 $text =~ s/\[color=(.*?)\](.*?)\[\/color\]/<span foreground='\1'>\2<\/span>/g; 667 $text =~ s/\[color=(.*?)\](.*?)\[\/color\]/<span foreground='\1'>\2<\/span>/g;
667 668

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines