--- deliantra/server/lib/cf.pm 2007/08/31 04:10:43 1.349 +++ deliantra/server/lib/cf.pm 2007/09/02 00:57:38 1.351 @@ -2093,14 +2093,14 @@ delete $cf::MAP{$self->path}; + $self->unlink_save; + bless $self, "cf::map"; delete $self->{deny_reset}; $self->{deny_save} = 1; $self->reset_timeout (1); $self->path ($self->{path} = "{nuke}/" . ($nuke_counter++)); - $self->unlink_save; - $cf::MAP{$self->path} = $self; } @@ -2506,6 +2506,15 @@ =cut +our %CHANNEL = ( + "c/identify" => { + id => "identify", + title => "Identify", + reply => undef, + tooltip => "Items recently identified", + }, +); + sub cf::client::send_msg { my ($self, $channel, $msg, $color, @extra) = @_; @@ -2513,6 +2522,9 @@ $color &= cf::NDI_CLIENT_MASK; # just in case... + # check predefined channels, for the benefit of C + $channel = $CHANNEL{$channel} if $CHANNEL{$channel}; + if (ref $channel) { # send meta info to client, if not yet sent unless (exists $self->{channel}{$channel->{id}}) {