X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fchat.pl;h=f4ae651f8d21ffc28731abf10aa4a0cff8978b06;hb=a3070f2678d8be7d44dbf2148cee77cd6a212243;hp=6e209e25dbd5645cccc6bad700b372b2b3e77ac8;hpb=62a87def961821679e455f333a58bc8c357e0457;p=spider.git diff --git a/cmd/show/chat.pl b/cmd/show/chat.pl index 6e209e25..f4ae651f 100644 --- a/cmd/show/chat.pl +++ b/cmd/show/chat.pl @@ -1,7 +1,7 @@ # # print out the general log file for chat only # -# Copyright (c) 1998-2003 - Dirk Koopman G1TLH +# Copyright (c) 1998-2023 - Dirk Koopman G1TLH # # # @@ -28,7 +28,7 @@ while ($f = shift @f) { # next field next if $to; } next if $who; - if ($f !~ /^\d+/) { + if ($f !~ /^\d+$/) { ($who) = $f; } # ($who) = $f =~ /^(\w+)/o; @@ -37,7 +37,7 @@ while ($f = shift @f) { # next field $to = 20 unless $to; $from = 0 unless $from; -if ($self->{_nospawn}) { +if ($self->{_nospawn} || $main::is_win == 1) { @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]);