--- deliantra/Deliantra-Client/DC/Protocol.pm 2007/04/10 11:12:53 1.100 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2007/04/18 18:16:16 1.102 @@ -17,12 +17,12 @@ use base 'Crossfire::Protocol::Base'; sub new { - my $class = shift; + my ($class, %arg) = @_; - my $self = $class->SUPER::new (@_, + my $self = $class->SUPER::new (%arg, setup_req => { - extmap => 1, - smoothing => 1, + extmap => 1, + %{$arg{setup_req} || {}}, }, ); @@ -658,8 +658,9 @@ $self->logprint ("info: ", $text); - # try to create single paragraphs of multiple lines sent by the server - $text =~ s/(?<=\S)\n(?=\w)/ /g; + ## try to create single paragraphs of multiple lines sent by the server + # no longer neecssary with TRT servers + #$text =~ s/(?<=\S)\n(?=\w)/ /g; $text = CFPlus::asxml $text; $text =~ s/\[b\](.*?)\[\/b\]/\1<\/b>/g;