add missing saveuserfile and expm spawn_cmd cmds
[spider.git] / cmd / spawncmd.pl
diff --git a/cmd/spawncmd.pl b/cmd/spawncmd.pl
new file mode 100644 (file)
index 0000000..829c529
--- /dev/null
@@ -0,0 +1,13 @@
+# spawn a command
+#
+# Note: this command will run _nospawn versions of a cmd (as this is a direct lift from
+#       the 'spawn_cmd' in DXCron pm
+#
+
+sub handle
+{
+       my ($self, $line) = @_;
+       return (1, $self->msg('e5')) if $self->priv < 6;
+       my @out = DXCron::spawn_cmd($line, $self) unless $self->{_nospawn};
+       return (1, @out);
+}