+30Jul04=======================================================================
+1. make sure that // is not converted to / in command lines.
28Jul04=======================================================================
1. backported 'Investigate' from NP branch so that only pingable nodes
are 'believed'.
{
my ($self, $flag, $node, $user) = @_;
my $nref = Route::Node::get($node);
- my $dxchan = $nref->bestdxchan if $nref;
+ my $dxchan = $nref->dxchan if $nref;
if ($nref && $dxchan) {
if ($dxchan == $self) {
return 1 unless $user;
return 1 if @users == 0 || grep $user eq $_, @users;
dbg("RSPF: $user not on $node") if isdbg('chanerr');
} else {
- dbg("RSPF: Shortest path for $node is " . $nref->bestdxchan->{call}) if isdbg('chanerr');
+ dbg("RSPF: Shortest path for $node is " . $nref->dxchan->{call}) if isdbg('chanerr');
}
} else {
return 1 if $flag;
return () if length $cmdline == 0;
- # strip out //
- $cmdline =~ s|//|/|og;
-
# split the command line up into parts, the first part is the command
my ($cmd, $args) = split /\s+/, $cmdline, 2;
$args = "" unless defined $args;
if ($cmd) {
-
+ # strip out // on command only
+ $cmd =~ s|//|/|g;
+
my ($path, $fcmd);
dbg("cmd: $cmd") if isdbg('command');