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.134 by elmex, Wed Jul 25 15:06:19 2007 UTC vs.
Revision 1.135 by elmex, Fri Jul 27 17:24:29 2007 UTC

189 189
190 # message window 190 # message window
191 $self->connect_ext (channel_info => sub { 191 $self->connect_ext (channel_info => sub {
192 my ($info) = @_; 192 my ($info) = @_;
193 $self->{channels}->{$info->{id}} = $info; 193 $self->{channels}->{$info->{id}} = $info;
194 $::MESSAGE_WINDOW->add_channel ($_[0]); 194 $::MESSAGE_WINDOW->add_channel ($info);
195 }); 195 });
196 196
197 # destroy widgets on logout 197 # destroy widgets on logout
198 $self->{on_stop_game_guard} = $self->{map_widget}{root}->connect (stop_game => sub { 198 $self->{on_stop_game_guard} = $self->{map_widget}{root}->connect (stop_game => sub {
199 for my $ws (values %{delete $self->{widgetset} || {}}) { 199 for my $ws (values %{delete $self->{widgetset} || {}}) {
896 896
897 ## try to create single paragraphs of multiple lines sent by the server 897 ## try to create single paragraphs of multiple lines sent by the server
898 # no longer neecssary with TRT servers 898 # no longer neecssary with TRT servers
899 #$text =~ s/(?<=\S)\n(?=\w)/ /g; 899 #$text =~ s/(?<=\S)\n(?=\w)/ /g;
900 900
901 ::message ({ fg => $fg, markup => $_, type => $type }) 901 ::message ({ fg => $fg, markup => $_, type => $type, extra => [@extra] })
902 for split /\n/, $text; 902 for split /\n/, $text;
903 903
904 $self->{statusbox}->add ($text, 904 $self->{statusbox}->add ($text,
905 group => $text, 905 group => $text,
906 fg => $fg, 906 fg => $fg,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines