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.22 by root, Tue Jun 6 02:55:50 2006 UTC vs.
Revision 1.23 by root, Tue Jun 6 03:02:15 2006 UTC

371 [0.74, 0.65, 0.41], 371 [0.74, 0.65, 0.41],
372 ); 372 );
373 373
374 my $time = sprintf "%02d:%02d:%02d", (localtime time)[2,1,0]; 374 my $time = sprintf "%02d:%02d:%02d", (localtime time)[2,1,0];
375 375
376 # try to create single paragraphs of multiple lines sent by the server
377 $text =~ s/(?<=\S)\n(?=\S)/ /g;
378
376 $text = CFClient::UI::Label::escape $text; 379 $text = CFClient::UI::Label::escape $text;
377 $text =~ s/\[b\](.*?)\[\/b\]/<b>\1<\/b>/g; 380 $text =~ s/\[b\](.*?)\[\/b\]/<b>\1<\/b>/g;
378 $text =~ s/\[color=(.*?)\](.*?)\[\/color\]/<span foreground='\1'>\2<\/span>/g; 381 $text =~ s/\[color=(.*?)\](.*?)\[\/color\]/<span foreground='\1'>\2<\/span>/g;
379 382
380 $self->{logview}->add_paragraph ($color[$color], 383 $self->{logview}->add_paragraph ($color[$color],

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines