nospawnify some of the commands
[spider.git] / cmd / show / chat.pl
index 38d5b38ab8af5b813e0bb0bc37028e3f9c167f15..9f543df58717b50aa4fbe707e7e9f62f20d5df57 100644 (file)
@@ -34,7 +34,9 @@ while ($f = shift @f) {                 # next field
 $to = 20 unless $to;
 $from = 0 unless $from;
 
-@out = $self->spawn_cmd("show/chat $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, 'chat', $who]);
-       
-#@out = DXLog::print($from, $to, $main::systime, 'chat', $who);
+if ($self->{_nospawn}) {
+       @out = DXLog::print($from, $to, $main::systime, 'chat', $who);
+} else {
+       @out = $self->spawn_cmd("show/chat $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, 'chat', $who]);
+}
 return (1, @out);