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.65 by root, Sun Jul 23 16:11:12 2006 UTC vs.
Revision 1.66 by root, Sun Jul 23 16:48:48 2006 UTC

623} 623}
624 624
625sub spell_add { 625sub spell_add {
626 my ($self, $spell) = @_; 626 my ($self, $spell) = @_;
627 627
628 # try to create single paragraphs of multiple lines sent by the server 628 # try to create single paragraphs out of the multiple lines sent by the server
629 $spell->{message} =~ s/(?<=\S)\n(?=\w)/ /g; 629 $spell->{message} =~ s/(?<=\S)\n(?=\w)/ /g;
630 $spell->{message} =~ s/\n+$//; 630 $spell->{message} =~ s/\n+$//;
631 $spell->{message} ||= "Server did not provide a description for this spell."; 631 $spell->{message} ||= "Server did not provide a description for this spell.";
632 632
633 $::SPELL_PAGE->add_spell ($spell); 633 $::SPELL_PAGE->add_spell ($spell);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines