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