push @f, $self->call unless @f;
if (@f <= 2 && uc $f[0] eq 'ALL') {
- return (1, $self->msg('e6')) if ($self->priv < 6);
+ return (1, $self->msg('e6')) if @f == 1 && $self->priv < 6;
+ return (1, $self->msg('e6')) if $self->priv < 5 || $f[1] eq '*';
shift @f;
my $exp = shellregex(uc shift @f) if @f;
my @calls;
}
my $cref = Route::get($call);
- my $seek = join(',', $cref->parents) if $cref;
+ my $seek = $cref->isa('Route::Node') ? $call : join(',', $cref->parents) if $cref;
if ($seek) {
push @out, "User : $call (at $seek)";