--- deliantra/Deliantra-Client/DC/Protocol.pm 2007/09/01 08:08:52 1.171 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2007/12/22 06:50:37 1.179 @@ -12,8 +12,6 @@ use CFPlus::Macro; use CFPlus::Item; -use Crossfire::Protocol::Base 0.95; - use base 'Crossfire::Protocol::Base'; sub new { @@ -23,7 +21,7 @@ setup_req => { extmap => 1, excmd => 1, - xwidget2 => 1,#d# + widget => 1, %{$arg{setup_req} || {}}, }, ); @@ -617,11 +615,10 @@ if ($delay) { # delay the map drawing a tiny bit in the hope of getting the missing fetched - Event->timer (after => 0.03, cb => sub { - $_[0]->w->cancel; + EV::once undef, 0, 0.03, sub { $self->{map_widget}->update if $self->{map_widget}; - }); + }; } else { $self->{map_widget}->update; } @@ -971,7 +968,11 @@ local $_ = shift; # we now weed out all tags we do not support - s%<(?!/?i>|/?u>|/?b>|fg |/fg>)%<%g; + s{ <(?! /?i> | /?u> | /?b> | /?big | /?small | /?s | /?tt | fg\ | /fg>) + }{ + "<" + }gex; + # now all entities s/&(?!amp;|lt;|gt;|apos;|quot;|#[0-9]+;|#x[0-9a-fA-F]+;)/&/g; @@ -1040,7 +1041,7 @@ markup => $_, type => $type, extra => [@extra], - color_flags => $color, #d# ugly, kill + color_flags => $color, #d# ugly, kill }); $color &= ~NDI_CLEAR; # only clear once for multiline messages @@ -1055,7 +1056,7 @@ fg => $fg, timeout => $color >= 2 ? 180 : 10, tooltip_font => $::FONT_FIXED, - ); + ) if $type eq "info"; } } @@ -1303,8 +1304,6 @@ $self->update_server_info; - $self->send_command ("output-sync $::CFG->{output_sync}"); - $self->send_command ("output-count $::CFG->{output_count}"); $self->send_command ("output-rate $::CFG->{output_rate}") if $::CFG->{output_rate} > 0; $self->send_command ("pickup $::CFG->{pickup}"); }