X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=643286f61c4c6091e7efb8c7c9a463c5ff2f0375;hb=6c38bca91e6b75002e15cce29c45a894f675e22e;hp=bc3f3a9f40309e4dc8cd50d84b724e953755b1ba;hpb=f7ce6f45eae627c1368ffea0e1e56e84fec676be;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index bc3f3a9f..643286f6 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -101,9 +101,9 @@ sub do_resize sub cease { my $sendz = shift; - if ($conn && $sendz) { - $conn->send_now("Z$call|bye..."); - } +# if ($conn && $sendz) { +# $conn->send_now("Z$call|bye..."); +# } endwin(); dbgclose(); print @_ if @_; @@ -214,7 +214,7 @@ sub rec_socket cease(1); } if (defined $msg) { - my ($sort, $call, $line) = $msg =~ /^(\w)(\S+)\|(.*)$/; + my ($sort, $call, $line) = $msg =~ /^(\w)([^\|]+)\|(.*)$/; if ($sort && $sort eq 'D') { addtotop($line); @@ -226,6 +226,8 @@ sub rec_socket # any other sorts that might happen are silently ignored. # ****************************************************** # ****************************************************** + } else { + cease(0); } $top->refresh(); $lasttime = time;