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.132 by root, Tue Jul 24 05:13:23 2007 UTC vs.
Revision 1.133 by elmex, Tue Jul 24 18:39:39 2007 UTC

183 183
184 my $w = $self->{widget}{$id} 184 my $w = $self->{widget}{$id}
185 or return; 185 or return;
186 186
187 $self->send_exti_msg (w_r => $rid, [map $w->{$_}, @$attr]); 187 $self->send_exti_msg (w_r => $rid, [map $w->{$_}, @$attr]);
188 });
189
190 # message window
191 $self->connect_ext (channel_info => sub {
192 $::MESSAGE_WINDOW->add_channel ($_[0]);
188 }); 193 });
189 194
190 # destroy widgets on logout 195 # destroy widgets on logout
191 $self->{on_stop_game_guard} = $self->{map_widget}{root}->connect (stop_game => sub { 196 $self->{on_stop_game_guard} = $self->{map_widget}{root}->connect (stop_game => sub {
192 for my $ws (values %{delete $self->{widgetset} || {}}) { 197 for my $ws (values %{delete $self->{widgetset} || {}}) {
889 894
890 ## try to create single paragraphs of multiple lines sent by the server 895 ## try to create single paragraphs of multiple lines sent by the server
891 # no longer neecssary with TRT servers 896 # no longer neecssary with TRT servers
892 #$text =~ s/(?<=\S)\n(?=\w)/ /g; 897 #$text =~ s/(?<=\S)\n(?=\w)/ /g;
893 898
894 ::message ({ fg => $fg, markup => $_ }) 899 ::message ({ fg => $fg, markup => $_, type => $type })
895 for split /\n/, $text; 900 for split /\n/, $text;
896 901
897 $self->{statusbox}->add ($text, 902 $self->{statusbox}->add ($text,
898 group => $text, 903 group => $text,
899 fg => $fg, 904 fg => $fg,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines