--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/12/09 02:21:25 1.91 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/12/09 21:26:46 1.92 @@ -989,7 +989,7 @@ @_, ); - Scalar::Util::weaken (my $this = $self); + CFPlus::weaken (my $this = $self); $self->connect (delete => sub { $this->destroy; 1 }); @@ -1043,7 +1043,7 @@ sub update_options { my ($self) = @_; - Scalar::Util::weaken $self; + CFPlus::weaken $self; $self->{options}->clear; $self->{options}->add ($self->{bye_button}); @@ -1062,7 +1062,7 @@ sub feed { my ($self, $msg) = @_; - Scalar::Util::weaken $self; + CFPlus::weaken $self; if ($msg->{msgtype} eq "reply") { $self->{kw}{$_} = 1 for @{$msg->{add_topics} || []};