X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fchat.pl;h=9f543df58717b50aa4fbe707e7e9f62f20d5df57;hb=e092b3748fa8f58e626a0a379bdee05996f69c27;hp=7895c3b56523929d7fa54588ff309273a853574e;hpb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;p=spider.git diff --git a/cmd/show/chat.pl b/cmd/show/chat.pl index 7895c3b5..9f543df5 100644 --- a/cmd/show/chat.pl +++ b/cmd/show/chat.pl @@ -34,5 +34,9 @@ while ($f = shift @f) { # next field $to = 20 unless $to; $from = 0 unless $from; -@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);