add an RBN line to progress
[spider.git] / cmd / spawncmd.pl
1 # spawn a command
2 #
3 # Note: this command will run _nospawn versions of a cmd (as this is a direct lift from
4 #       the 'spawn_cmd' in DXCron pm
5 #
6
7 sub handle
8 {
9         my ($self, $line) = @_;
10         return (1, $self->msg('e5')) if $self->priv < 6;
11         my @out = DXCron::spawn_cmd($line, $self) unless $self->{_nospawn};
12         return (1, @out);
13 }