X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2Fconsole.pl;h=643286f61c4c6091e7efb8c7c9a463c5ff2f0375;hb=080a66c38925314321249190eb5a4dc572636d4b;hp=5fd965ee8f1da9f0d3a950daed7036531d214495;hpb=0bd9d2811cc42417676a1b11b121681c2377d70a;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index 5fd965ee..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,13 +214,20 @@ 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); } elsif ($sort && $sort eq 'Z') { # end, disconnect, go, away ..... cease(0); } + # ****************************************************** + # ****************************************************** + # any other sorts that might happen are silently ignored. + # ****************************************************** + # ****************************************************** + } else { + cease(0); } $top->refresh(); $lasttime = time;