X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fbye.pl;h=41d3ee91af35a549d17dcfd57019b4c72ae82b75;hb=eac4538f1f78b3d014539dc548fc6322e8337429;hp=d6e2d14becc76790295e429a02a093bb15653f54;hpb=586cbb347e7639f5575b48572e75140501a109c0;p=spider.git diff --git a/cmd/bye.pl b/cmd/bye.pl index d6e2d14b..41d3ee91 100644 --- a/cmd/bye.pl +++ b/cmd/bye.pl @@ -1,10 +1,11 @@ # # the bye command # -# $Id$ +# # my $self = shift; +return (1, $self->msg('e5')) if $self->inscript; # log out text if ($self->is_user && -e "$main::data/logout") { @@ -15,5 +16,8 @@ if ($self->is_user && -e "$main::data/logout") { sleep(1); } -$self->state('bye'); +#$self->send_now('Z', ""); + +$self->disconnect; + return (1);