]> scm.dxcluster.org Git - spider.git/blob - cmd/show/startup.pl
added support for subroutines in commands
[spider.git] / cmd / show / startup.pl
1 #
2 # print a startup script
3 #
4 # Copyright (c) 2005 Dirk Koopman G1TLH
5 #
6 #
7 #
8 my ($self, $line) = @_;
9 return (1, $self->msg('e5')) if $self->remotecmd || $self->inscript;
10 return (1, $self->msg('e5')) if $line && $self->priv < 5;
11
12 my @out;
13
14 my $s = Script->new($line || $self->call);
15 push @out, $s->lines if $s;
16 return (1, @out);