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');
init_pair(12, COLOR_MAGENTA, COLOR_BLUE);
init_pair(13, COLOR_YELLOW, COLOR_GREEN);
init_pair(14, COLOR_RED, COLOR_GREEN);
- assume_default_colors($foreground, $background);
+ eval { assume_default_colors($foreground, $background) };
}
$top = $scr->subwin($lines-4, $cols, 0, 0);