X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=f65e43df41be75d009a10f799de5eff8d6b1719f;hb=2ea216bfaf03964488c54d88fad75ce6cd5a5612;hp=01d2135e657e834eac2bf100d5e61f2e443f6036;hpb=50f6466ca2dff82ca470a4abe327d741cffef61a;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 01d2135e..f65e43df 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -506,8 +506,9 @@ sub rspfcheck { my ($self, $flag, $node, $user) = @_; my $nref = Route::Node::get($node); - if ($nref) { - if ($nref->dxchan == $self) { + my $dxchan = $nref->dxchan if $nref; + if ($nref && $dxchan) { + if ($dxchan == $self) { return 1 unless $user; my @users = $nref->users; return 1 if @users == 0 || grep $user eq $_, @users; @@ -544,7 +545,7 @@ sub broadcast_nodes # broadcast a message to all clusters ignoring isolation # [except those mentioned after buffer] -sub broadcast_all_ak1a +sub broadcast_all_nodes { my $s = shift; # the line to be rebroadcast my @except = @_; # to all channels EXCEPT these (dxchannel refs)