projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add FAQ on dupefile
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 3485c8f1e07175246200c7c67a26e4b1af314614..c4a81c7f509b503a9c3025217f2a3f80b45c5177 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-504,11
+504,12
@@
sub decode_input
sub rspfcheck
{
my ($self, $flag, $node, $user) = @_;
sub rspfcheck
{
my ($self, $flag, $node, $user) = @_;
- my $nref = Route::Node::
G
et($node);
+ my $nref = Route::Node::
g
et($node);
if ($nref) {
if ($nref->dxchan == $self) {
return 1 unless $user;
if ($nref) {
if ($nref->dxchan == $self) {
return 1 unless $user;
- return 1 if grep $user eq $_, $nref->users;
+ my @users = $nref->users;
+ return 1 if @users == 0 || grep $user eq $_, @users;
dbg("RSPF: $user not on $node") if isdbg('rspf');
} else {
dbg("RSPF: Shortest path for $node is " . $nref->dxchan->{call}) if isdbg('rspf');
dbg("RSPF: $user not on $node") if isdbg('rspf');
} else {
dbg("RSPF: Shortest path for $node is " . $nref->dxchan->{call}) if isdbg('rspf');